/* ========================================
   TDS Educational Webpage - Professional CSS
   ======================================== */

/* ========== GLOBAL RESET & TYPOGRAPHY ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, rgb(240, 247, 255) 0%, rgb(220, 237, 250) 100%);
    color: rgb(30, 41, 59);
    padding: 20px;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
    color: rgb(15, 23, 42);
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 2em;
    border-bottom: 4px solid rgb(37, 99, 235);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: rgb(29, 78, 216);
}

h3 {
    font-size: 1.5em;
    color: rgb(30, 64, 175);
    margin-top: 20px;
}

h4 {
    font-size: 1.2em;
    color: rgb(37, 99, 235);
}

p, li, td, th {
    font-weight: 600;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(37, 99, 235) 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3);
    margin-bottom: 30px;
    border: 3px solid rgb(30, 64, 175);
}

header h1 {
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h2 {
    color: rgb(191, 219, 254);
    font-size: 1.5em;
    border-bottom: none;
    text-align: center;
    font-weight: 600;
}

.disclaimer {
    background-color: rgb(254, 243, 199);
    color: rgb(146, 64, 14);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgb(251, 191, 36);
    margin-top: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== PRINT BUTTON ========== */
.print-container {
    text-align: center;
    margin: 20px 0;
}

.print-btn {
    background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
    color: white;
    padding: 15px 35px;
    border: 3px solid rgb(21, 128, 61);
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(22, 163, 74) 0%, rgb(21, 128, 61) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* ========== NAVIGATION ========== */
.navigation {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 3px solid rgb(147, 197, 253);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.navigation h3 {
    color: rgb(29, 78, 216);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(59, 130, 246) 0%, rgb(37, 99, 235) 100%);
    color: white;
    padding: 12px 20px;
    border: 2px solid rgb(30, 64, 175);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* ========== MAIN CONTENT SECTIONS ========== */
.content-section {
    background: rgb(255, 255, 255);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 3px solid rgb(191, 219, 254);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.section-intro {
    font-size: 1.1em;
    color: rgb(51, 65, 85);
    margin-bottom: 25px;
    font-weight: 600;
    background: rgb(240, 249, 255);
    padding: 15px;
    border-left: 5px solid rgb(59, 130, 246);
    border-radius: 5px;
}

.section-overview {
    background: rgb(239, 246, 255);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgb(147, 197, 253);
    margin-bottom: 25px;
}

.sub-section {
    margin: 30px 0;
    padding: 20px;
    background: rgb(248, 250, 252);
    border-radius: 10px;
    border-left: 5px solid rgb(59, 130, 246);
}

/* ========== TABLES ========== */
.tds-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tds-table thead {
    background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(37, 99, 235) 100%);
    color: white;
}

.tds-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 1em;
    border: 2px solid rgb(30, 64, 175);
}

.tds-table tbody tr {
    border-bottom: 2px solid rgb(226, 232, 240);
    transition: all 0.2s ease;
}

.tds-table tbody tr:nth-child(even) {
    background-color: rgb(248, 250, 252);
}

.tds-table tbody tr:nth-child(odd) {
    background-color: rgb(255, 255, 255);
}

.tds-table tbody tr:hover {
    background-color: rgb(240, 249, 255);
    transform: scale(1.01);
}

.tds-table td {
    padding: 12px 15px;
    border: 1px solid rgb(203, 213, 225);
    font-weight: 600;
}

/* ========== IMPORTANT NOTES & BOXES ========== */
.important-note {
    background: linear-gradient(135deg, rgb(254, 243, 199) 0%, rgb(253, 224, 71) 10%);
    border: 3px solid rgb(251, 191, 36);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.3);
}

.important-note h3, .important-note h4 {
    color: rgb(146, 64, 14);
    font-weight: 700;
}

.important-note ul, .important-note ol {
    margin-left: 25px;
    font-weight: 600;
    color: rgb(120, 53, 15);
}

.important-note li {
    margin: 8px 0;
}

.example-box {
    background: rgb(236, 254, 255);
    border: 3px solid rgb(103, 232, 249);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.2);
}

.example-box h4 {
    color: rgb(8, 145, 178);
    margin-bottom: 15px;
    font-weight: 700;
}

.example-box p {
    font-weight: 600;
    color: rgb(22, 78, 99);
}

.example-box ul {
    margin-left: 25px;
    font-weight: 600;
}

.example-box li {
    margin: 6px 0;
    color: rgb(22, 78, 99);
}

/* ========== CHART CATEGORIES ========== */
.chart-category {
    margin: 30px 0;
    padding: 20px;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    border: 2px solid rgb(203, 213, 225);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.chart-category h3 {
    background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    border: 2px solid rgb(30, 64, 175);
}

/* ========== CHANGES SUMMARY ========== */
.changes-summary {
    background: rgb(240, 253, 244);
    padding: 25px;
    border-radius: 12px;
    border: 3px solid rgb(134, 239, 172);
    margin: 30px 0;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.2);
}

.changes-summary h3 {
    color: rgb(21, 128, 61);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.change-item {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgb(187, 247, 208);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.change-item h4 {
    color: rgb(22, 163, 74);
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid rgb(187, 247, 208);
    padding-bottom: 8px;
}

.change-item ul {
    margin-left: 20px;
    font-weight: 600;
}

.change-item li {
    margin: 8px 0;
    color: rgb(22, 78, 99);
}

/* ========== SUPPORTING SECTIONS ========== */
.supporting-sections {
    background: rgb(254, 249, 195);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid rgb(250, 204, 21);
    margin: 25px 0;
    box-shadow: 0 6px 15px rgba(234, 179, 8, 0.2);
}

.supporting-sections h3 {
    color: rgb(133, 77, 14);
    font-weight: 700;
}

.supporting-sections ul {
    margin-left: 25px;
    font-weight: 600;
}

.supporting-sections li {
    margin: 10px 0;
    color: rgb(113, 63, 18);
}

/* ========== FLOWCHARTS ========== */
.flowchart-container {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 12px;
    border: 3px solid rgb(167, 139, 250);
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.flowchart-container h3 {
    color: rgb(109, 40, 217);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.flow-box {
    background: rgb(255, 255, 255);
    border: 3px solid rgb(139, 92, 246);
    padding: 15px 25px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    min-width: 250px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
    font-weight: 700;
}

.flow-start {
    background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
    color: white;
    border-color: rgb(21, 128, 61);
}

.flow-end {
    background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%);
    color: white;
    border-color: rgb(30, 64, 175);
}

.flow-decision {
    background: linear-gradient(135deg, rgb(251, 191, 36) 0%, rgb(245, 158, 11) 100%);
    color: rgb(120, 53, 15);
    border-color: rgb(217, 119, 6);
    font-weight: 700;
}

.flow-approve {
    background: linear-gradient(135deg, rgb(134, 239, 172) 0%, rgb(74, 222, 128) 100%);
    color: rgb(20, 83, 45);
    border-color: rgb(34, 197, 94);
}

.flow-reject {
    background: linear-gradient(135deg, rgb(252, 165, 165) 0%, rgb(239, 68, 68) 100%);
    color: rgb(127, 29, 29);
    border-color: rgb(220, 38, 38);
}

.flow-arrow {
    font-size: 2em;
    color: rgb(139, 92, 246);
    font-weight: 700;
    margin: 5px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 900px;
    margin: 20px 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 20px;
}

/* ========== MIND MAP ========== */
.mind-map-container {
    background: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 12px;
    border: 3px solid rgb(147, 197, 253);
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    overflow-x: auto;
}

.mind-map-container svg {
    display: block;
    margin: 0 auto;
}

/* ========== Q&A SECTION ========== */
.qa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(203, 213, 225);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%);
    color: white;
    padding: 18px 25px;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(30, 64, 175) 100%);
}

.qa-number {
    color: rgb(191, 219, 254);
    font-weight: 700;
    margin-right: 15px;
}

.qa-icon {
    font-size: 1.5em;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.qa-icon.active {
    transform: rotate(45deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    background: rgb(248, 250, 252);
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    border-top: 2px solid rgb(203, 213, 225);
}

.qa-answer.active {
    max-height: 3000px;
    padding: 25px;
}

.qa-answer p {
    margin-bottom: 15px;
    font-weight: 600;
    color: rgb(30, 41, 59);
}

.qa-answer ul, .qa-answer ol {
    margin-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.qa-answer li {
    margin: 8px 0;
    color: rgb(51, 65, 85);
}

.qa-answer table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.qa-answer table th {
    background: rgb(59, 130, 246);
    color: white;
    padding: 12px;
    border: 2px solid rgb(37, 99, 235);
    font-weight: 700;
}

.qa-answer table td {
    padding: 10px 12px;
    border: 1px solid rgb(203, 213, 225);
    background: rgb(255, 255, 255);
    font-weight: 600;
}

.qa-answer table tr:nth-child(even) td {
    background: rgb(248, 250, 252);
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, rgb(30, 41, 59) 0%, rgb(51, 65, 85) 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    border: 3px solid rgb(71, 85, 105);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-content p {
    margin: 12px 0;
    font-weight: 600;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgb(100, 116, 139);
    font-size: 0.95em;
    color: rgb(226, 232, 240);
    font-weight: 600;
}

/* ========== PRINT STYLES ========== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .print-container,
    .navigation,
    .qa-icon {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid rgb(203, 213, 225);
    }
    
    .qa-answer {
        max-height: none !important;
        padding: 15px !important;
    }
    
    .flowchart {
        page-break-inside: avoid;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .changes-grid {
        grid-template-columns: 1fr;
    }
    
    .tds-table {
        font-size: 0.85em;
    }
    
    .tds-table th,
    .tds-table td {
        padding: 8px;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .flow-branch {
        margin: 10px 0;
    }
    
    .mind-map-container svg {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    .tds-table {
        font-size: 0.75em;
    }
    
    .qa-question {
        font-size: 0.95em;
        padding: 15px;
    }
    
    .flow-box {
        min-width: 200px;
        padding: 12px 18px;
        font-size: 0.9em;
    }
}

/* ========== ACCESSIBILITY ========== */
button:focus,
.nav-btn:focus,
.qa-question:focus {
    outline: 3px solid rgb(251, 191, 36);
    outline-offset: 3px;
}

a:focus {
    outline: 3px solid rgb(59, 130, 246);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

strong {
    font-weight: 700;
    color: rgb(15, 23, 42);
}