/* ========================================
   ITC ELIGIBILITY GUIDE - PROFESSIONAL STYLESHEET
   Digital E-Filing Coach - Amanuddin Education
   ======================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(240, 248, 255) 0%, rgb(230, 240, 250) 50%, rgb(220, 235, 245) 100%);
    color: rgb(44, 62, 80);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    border: 4px solid rgb(41, 128, 185);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(41, 128, 185, 0.3);
    overflow: hidden;
}

/* ===== HEADER SECTION ===== */
header {
    background: linear-gradient(135deg, rgb(41, 128, 185) 0%, rgb(52, 152, 219) 100%);
    color: rgb(255, 255, 255);
    padding: 40px;
    text-align: center;
    border-bottom: 5px solid rgb(30, 100, 150);
}

header h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0.95;
}

.disclaimer {
    background-color: rgb(255, 235, 59);
    color: rgb(33, 33, 33);
    padding: 15px 25px;
    border-radius: 10px;
    border: 3px solid rgb(251, 192, 45);
    margin-top: 20px;
    font-weight: bold;
    font-size: 1em;
}

/* ===== NAVIGATION SECTION ===== */
.navigation {
    background: linear-gradient(135deg, rgb(46, 64, 83) 0%, rgb(44, 62, 80) 100%);
    padding: 30px;
    border-bottom: 4px solid rgb(30, 45, 60);
}

.navigation h2 {
    color: rgb(255, 255, 255);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(30, 100, 150);
    padding: 15px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(41, 128, 185) 0%, rgb(30, 100, 150) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgb(52, 152, 219);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.print-btn {
    background: linear-gradient(135deg, rgb(46, 204, 113) 0%, rgb(39, 174, 96) 100%) !important;
    border: 3px solid rgb(30, 130, 76) !important;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(39, 174, 96) 0%, rgb(30, 130, 76) 100%) !important;
    border-color: rgb(46, 204, 113) !important;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 40px;
    border-bottom: 3px solid rgb(189, 195, 199);
    background-color: rgb(252, 253, 254);
}

.content-section:nth-child(even) {
    background-color: rgb(248, 249, 250);
}

.section-heading {
    color: rgb(41, 128, 185);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(52, 152, 219);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-heading {
    color: rgb(52, 73, 94);
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 5px solid rgb(46, 204, 113);
}

/* ===== PARAGRAPHS & TEXT ===== */
p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: rgb(52, 73, 94);
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(52, 73, 94);
}

/* ===== TABLES ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-table thead {
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%);
    color: rgb(255, 255, 255);
}

.info-table thead th {
    padding: 18px 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.info-table thead th:last-child {
    border-right: none;
}

.info-table tbody tr {
    border-bottom: 2px solid rgb(236, 240, 241);
    transition: background-color 0.3s ease;
}

.info-table tbody tr:hover {
    background-color: rgb(235, 245, 251);
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table tbody td {
    padding: 15px;
    font-weight: bold;
    font-size: 1.05em;
    color: rgb(44, 62, 80);
    border-right: 1px solid rgb(236, 240, 241);
}

.info-table tbody td:last-child {
    border-right: none;
}

/* Table Cell Status Colors */
.eligible {
    background-color: rgb(212, 239, 223);
    color: rgb(30, 130, 76);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.not-eligible {
    background-color: rgb(248, 215, 218);
    color: rgb(169, 50, 38);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.partial {
    background-color: rgb(255, 243, 205);
    color: rgb(191, 144, 0);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

/* Summary Table Specific Styling */
.summary-table {
    border: 4px solid rgb(155, 89, 182);
}

.summary-table thead {
    background: linear-gradient(135deg, rgb(155, 89, 182) 0%, rgb(142, 68, 173) 100%);
}

/* ===== KEY POINTS BOX ===== */
.key-points {
    background: linear-gradient(135deg, rgb(232, 248, 245) 0%, rgb(220, 240, 235) 100%);
    border: 3px solid rgb(39, 174, 96);
    border-left: 8px solid rgb(39, 174, 96);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.key-points p {
    font-weight: bold;
    color: rgb(30, 130, 76);
    margin-bottom: 12px;
}

.key-points ul {
    margin-left: 20px;
}

.key-points li {
    color: rgb(39, 55, 70);
    font-weight: bold;
}

/* ===== LEGAL BOX ===== */
.legal-box {
    background: linear-gradient(135deg, rgb(255, 249, 230) 0%, rgb(255, 243, 205) 100%);
    border: 3px solid rgb(243, 156, 18);
    border-left: 8px solid rgb(243, 156, 18);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.legal-box p {
    font-weight: bold;
    color: rgb(191, 144, 0);
    margin-bottom: 10px;
}

.legal-box strong {
    color: rgb(230, 126, 34);
}

/* ===== FLOWCHART SECTION ===== */
.flowchart-container {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgb(250, 250, 250) 0%, rgb(245, 245, 245) 100%);
    border: 4px solid rgb(149, 165, 166);
    border-radius: 15px;
    overflow-x: auto;
}

.flowchart {
    min-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flow-box {
    padding: 20px 30px;
    border-radius: 10px;
    border: 3px solid rgb(52, 73, 94);
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    min-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.start-box {
    background: linear-gradient(135deg, rgb(46, 204, 113) 0%, rgb(39, 174, 96) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(30, 130, 76);
    font-size: 1.1em;
}

.decision-box {
    background: linear-gradient(135deg, rgb(52, 152, 219) 0%, rgb(41, 128, 185) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(30, 100, 150);
    border-radius: 15px;
}

.end-box {
    font-size: 1.05em;
    min-width: 300px;
}

.eligible-box {
    background: linear-gradient(135deg, rgb(46, 204, 113) 0%, rgb(39, 174, 96) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(30, 130, 76);
}

.not-eligible-box {
    background: linear-gradient(135deg, rgb(231, 76, 60) 0%, rgb(192, 57, 43) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(169, 50, 38);
}

.flow-arrow {
    font-size: 1.8em;
    font-weight: bold;
    color: rgb(52, 73, 94);
    padding: 5px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
    margin: 10px 0;
}

.flow-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.flow-split-small {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.flow-split-small .flow-box {
    min-width: 200px;
    font-size: 0.95em;
    padding: 15px 20px;
}

/* ===== MIND MAP SECTION ===== */
.mind-map-container {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(250, 250, 250) 100%);
    border: 4px solid rgb(142, 68, 173);
    border-radius: 15px;
    overflow-x: auto;
}

#mindMapSVG {
    width: 100%;
    height: auto;
    min-height: 1200px;
}

#mindMapSVG text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

/* ===== FOOTER SECTION ===== */
footer {
    background: linear-gradient(135deg, rgb(44, 62, 80) 0%, rgb(52, 73, 94) 100%);
    color: rgb(255, 255, 255);
    padding: 40px;
    border-top: 5px solid rgb(30, 45, 60);
}

.footer-content h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: rgb(236, 240, 241);
}

.footer-content ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.footer-content li {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 12px;
    color: rgb(236, 240, 241);
}

.footer-disclaimer {
    background-color: rgb(255, 235, 59);
    color: rgb(33, 33, 33);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid rgb(251, 192, 45);
    margin: 25px 0;
}

.footer-disclaimer p {
    color: rgb(33, 33, 33);
    font-weight: bold;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgb(127, 140, 141);
    font-size: 1.05em;
    font-weight: bold;
    color: rgb(189, 195, 199);
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: rgb(255, 255, 255);
        padding: 0;
    }

    .container {
        border: none;
        box-shadow: none;
    }

    .navigation {
        display: none;
    }

    .nav-btn {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        border-bottom: 2px solid rgb(200, 200, 200);
    }

    .flowchart-container,
    .mind-map-container {
        page-break-before: always;
    }

    header {
        background: rgb(41, 128, 185);
        color: rgb(255, 255, 255);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .info-table thead {
        background: rgb(41, 128, 185);
        color: rgb(255, 255, 255);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .eligible,
    .not-eligible,
    .partial {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .key-points,
    .legal-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .disclaimer,
    .footer-disclaimer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .container {
        margin: 10px;
    }

    header h1 {
        font-size: 2.2em;
    }

    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .section-heading {
        font-size: 1.6em;
    }

    .sub-heading {
        font-size: 1.3em;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .info-table {
        font-size: 0.9em;
    }

    .flow-split {
        flex-direction: column;
    }

    .flowchart-container,
    .mind-map-container {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .content-section {
        padding: 15px;
    }

    .info-table thead th,
    .info-table tbody td {
        padding: 10px 8px;
        font-size: 0.85em;
    }

    .flow-box {
        min-width: 250px;
        padding: 15px 20px;
        font-size: 0.9em;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus {
    outline: 3px solid rgb(255, 193, 7);
    outline-offset: 2px;
}

/* ===== ANIMATION FOR PAGE LOAD ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-in-out;
}