/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
    min-height: 100vh;
}

/* ===== LAYOUT COMPONENTS ===== */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin: 1% auto;
}

.header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 21px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.025em;
    text-align: left;
    padding: 5px 20px;
}

.main-content {
    padding: 15px 15px;
}

/* ===== FORM COMPONENTS ===== */
.issue-selector {
}

.form-group {
    margin-bottom: 1%;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select {
    width: 100%;
    padding: 10px 5px;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ===== ALERT COMPONENTS ===== */
.alert {
    padding: 4px 5px;
    border-radius: 0.5rem;
    border: 1px solid;
    margin-bottom: 1%;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 14px;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.alert-info {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0284c7;
}

.alert-icon {
    font-size: 1.125rem;
    line-height: 1;
    margin-top: 2px;
    padding-left: 4px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1%;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.nav-link {
    color: #3a3636;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.Click_cls{
    color: #0b45d6;
}

.Click_cls:hover {
    color: #3357b8;
    text-decoration: underline;
}

.nav-link::before {
    content: '\2192';
    font-weight: bold;
}

/* ===== TABLE COMPONENTS ===== */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 1%;
}

.schedule-table thead {
    background: #1e40af;
    color: #ffffff;
}

.schedule-table th {
    padding: 6px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-table tbody {
    background: #ffffff;
}

.schedule-table td {
    padding: 5px 20px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background: #f9fafb;
}

.table-label {
    font-weight: 600;
    color: #374151;
}

.table-value {
    color: #4b5563;
    font-family: 'Consolas', Monaco, monospace;
}

.empty-value {
    color: #242425;
    font-style: italic;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 10px 15px;
    margin-bottom: 1%;
}

.download-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-title::before {
    content: '\1F4C4';
    font-size: 1.25rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
}

.download-item {
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.download-item:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.download-label {
    font-weight: 600;
    color: #111827;
    display: block;
}

.download-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.download-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.download-link::after {
    content: '\2193';
    font-weight: bold;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 10px;
    margin-top: 1%;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.success {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ===== CAPTCHA COMPONENT ===== */
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ecfdf5;
    border: 2px dashed #059669;
    border-radius: 0.5rem;
    justify-content: center;
    width: 63%;
}

.captcha-code {
    font-family: 'Consolas', Monaco, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 4px;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    padding-left: 10px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.captcha-refresh::before {
    content: '\1F504';
    font-size: 1.5rem;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

.captcha-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0 auto;
}

.captcha-input {
    flex: 1;
    max-width: 200px;
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.btnprimary {
    background: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btnprimary:hover {
    background: #1e3a8a;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.btnprimary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== MASK SCREEN STYLES (Loading & Result) ===== */
.mask-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loadingbox, .resultbox {
    background: #ffffff;
    padding: 1.5rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    margin: 2% auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.4;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.result-details {
    text-align: left;
    width: 100%;
    display: grid;
    gap: 10px;
}

.result-details > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.result-details .label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.result-details .value {
    color: #4b5563;
    font-weight: 500;
}

.result-download {
    font-size: 1rem;
    margin: 2% 0% 0% 37%;
    font-size: 1rem;
}

.download-btn {
    background: #1e40af;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #1e3a8a;
}

/* Close Button Styles */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
}
.close-btn:hover {
    color: #ef4444; /* A light red for hover */
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .header {
        padding: 2rem 1.5rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .captcha-display {
        flex-direction: column;
        text-align: center;
    }

    .captcha-code {
        font-size: 1.25rem;
    }

    .search-section {
        padding: 2rem;
    }
}
.BulkMailSentReportCls{
    width: 100%;
    margin: 0% 0%;
    border-collapse: collapse;
    text-align: justify;
}
.tabletop{
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    text-align: center;
    font-size: 17px;
}
th,td{
    border: 1px solid gainsboro;
    padding: 6px;
}
.BulkMailSentReportCls th{
    background-color:#135ea7 ;
    color: whitesmoke;
    opacity: 0.95;
}
.IDPMAlertMask1 {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.507);
    display: none;
    z-index: 3333;
}

.IDPMAlertMaskcon {
    background-color: white;
    width: 25%;
    border-radius: 5px;
    margin: 15% auto;
    padding: 6px;
}

.IDPMAlertMaskTitle {
    background-color: white;
    color: #135ea7;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 20px;
    border-radius: 4px 4px 0px 0px;
    font-family: math;
    border-bottom: 2px solid #135ea7;
}

/* .IDPMAlertMaskTitle{background-color:white ;color: black;text-align: center;padding: 7px;font-weight: bolder;letter-spacing: 1px;font-size: 25px;border-radius: 4px 4px 0px 0px;border-bottom: 2px solid ##66444A;} */
.IDPMAlertMaskMsg {
    text-align: center;
    color: #222222;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
    font-family: math;
    color: #545454;
}

.IDPMAlertMaskFooter {
    padding: 7px;
    text-align: center;
    margin-top: 10px;
}

/* .IDPMAlertSpan{width: 70px;border: 2px solid ##66444A;display: inline-block;padding: 2px;border-radius: 10px;} */
.IDPMAlertBtnCls {
    width: 50px;
    padding: 3px;
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-family: math;
    font-size: 17px;
    cursor: pointer;
    margin-left: 15px;
    background-color: #135ea7;
}

.IDPMCloseSpan {
    width: 25px;
    float: right;
    border: 2px solid #f8f3f3;
    border-radius: 50%;
    cursor: pointer;
    color: red;
}

.IDPMAlertSpanimg {
    width: 30px;
    border-radius: 10px;
    vertical-align: middle;
    margin-right: 5px;
}