/* ========================================
   DEPRECIATION RATES STYLESHEET
   Professional Educational Resource Design
   ======================================== */

/* ===== 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), rgb(230, 240, 250));
    color: rgb(30, 30, 30);
    line-height: 1.6;
    padding: 20px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
        padding: 20px;
    }
    
    .content-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    h2 {
        page-break-after: avoid;
    }
}

/* ===== PRINT BUTTON ===== */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: linear-gradient(135deg, rgb(50, 150, 250), rgb(30, 120, 220));
    color: white;
    border: 3px solid rgb(20, 100, 200);
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(30, 120, 220), rgb(20, 100, 200));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION MENU ===== */
.navigation-menu {
    position: fixed;
    left: 20px;
    top: 120px;
    width: 280px;
    background: linear-gradient(135deg, rgb(255, 255, 255), rgb(245, 250, 255));
    border: 3px solid rgb(50, 150, 250);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 999;
}

.navigation-menu h2 {
    color: rgb(30, 80, 180);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 3px solid rgb(50, 150, 250);
    padding-bottom: 10px;
}

.navigation-menu button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, rgb(50, 150, 250), rgb(70, 170, 255));
    color: white;
    border: 2px solid rgb(30, 120, 220);
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    transition: all 0.3s ease;
}

.navigation-menu button:hover {
    background: linear-gradient(135deg, rgb(30, 120, 220), rgb(50, 150, 250));
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto 0 320px;
    background: linear-gradient(135deg, rgb(255, 255, 255), rgb(250, 252, 255));
    border: 4px solid rgb(50, 150, 250);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== HEADER ===== */
.main-header {
    text-align: center;
    background: linear-gradient(135deg, rgb(30, 80, 180), rgb(50, 120, 220));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 4px solid rgb(20, 60, 150);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.main-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header .subtitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.main-header .ay-year {
    font-size: 18px;
    font-weight: bold;
    color: rgb(255, 220, 100);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 240, 200), rgb(255, 250, 220));
    border: 3px solid rgb(220, 180, 100);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.disclaimer p {
    color: rgb(150, 80, 20);
    font-size: 16px;
    font-weight: bold;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgb(252, 255, 252), rgb(248, 252, 255));
    border: 3px solid rgb(100, 180, 255);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: rgb(30, 80, 180);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 4px solid rgb(50, 150, 250);
}

.content-section h3 {
    color: rgb(40, 100, 200);
    font-size: 22px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: rgb(50, 120, 220);
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    color: rgb(40, 40, 40);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    color: rgb(40, 40, 40);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===== INFO BOXES ===== */
.info-box {
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(250, 252, 255));
    border: 3px solid rgb(50, 150, 250);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    color: rgb(30, 80, 180);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-box p {
    color: rgb(40, 40, 40);
    font-weight: 600;
}

.important-notes {
    background: linear-gradient(135deg, rgb(255, 248, 240), rgb(255, 252, 245));
    border: 3px solid rgb(220, 140, 60);
}

.important-notes h3 {
    color: rgb(180, 80, 20);
}

/* ===== SUB-SECTIONS ===== */
.sub-section {
    background: linear-gradient(135deg, rgb(248, 252, 255), rgb(252, 254, 255));
    border: 2px solid rgb(150, 200, 255);
    border-radius: 8px;
    padding: 18px;
    margin: 15px 0;
}

.sub-section h4 {
    color: rgb(40, 100, 200);
    font-weight: bold;
}

/* ===== COMPARISON BOX ===== */
.comparison-box {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.compare-item {
    flex: 1;
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(245, 250, 255));
    border: 3px solid rgb(80, 160, 240);
    border-radius: 10px;
    padding: 20px;
}

.compare-item h4 {
    color: rgb(30, 80, 180);
    font-weight: bold;
    margin-bottom: 12px;
}

.compare-item p {
    font-weight: 600;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, rgb(30, 80, 180), rgb(50, 120, 220));
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgb(20, 60, 150);
}

.data-table td {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    color: rgb(40, 40, 40);
    border: 2px solid rgb(200, 220, 240);
}

.data-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgb(248, 252, 255), rgb(250, 253, 255));
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(245, 250, 255));
}

.category-row {
    background: linear-gradient(135deg, rgb(50, 150, 250), rgb(70, 170, 255)) !important;
    color: white !important;
}

.category-row td {
    font-weight: bold;
    color: white !important;
    border-color: rgb(30, 120, 220) !important;
}

.highlight-row {
    background: linear-gradient(135deg, rgb(255, 250, 200), rgb(255, 252, 220)) !important;
}

.highlight-row td {
    font-weight: bold;
    color: rgb(120, 60, 10) !important;
}

.rate-cell {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: rgb(200, 50, 50);
    background: linear-gradient(135deg, rgb(255, 245, 245), rgb(255, 250, 250));
}

/* ===== COMPARISON TABLE STYLES ===== */
.comparison-table td {
    font-weight: bold;
}

.diff-small {
    color: rgb(50, 150, 50);
    font-weight: bold;
}

.diff-large {
    color: rgb(200, 50, 50);
    font-weight: bold;
}

/* ===== FLOWCHART STYLES ===== */
.flowchart-container {
    background: linear-gradient(135deg, rgb(245, 250, 255), rgb(250, 252, 255));
    border: 3px solid rgb(100, 180, 255);
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flow-item {
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(245, 250, 255));
    border: 3px solid rgb(50, 150, 250);
    border-radius: 10px;
    padding: 20px;
    min-width: 300px;
    text-align: center;
    font-weight: bold;
    color: rgb(30, 80, 180);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.flow-item.start,
.flow-item.end {
    background: linear-gradient(135deg, rgb(50, 150, 250), rgb(70, 170, 255));
    color: white;
    border-color: rgb(30, 120, 220);
}

.flow-item.decision {
    background: linear-gradient(135deg, rgb(255, 240, 200), rgb(255, 245, 215));
    border-color: rgb(220, 180, 100);
    color: rgb(150, 80, 20);
    border-radius: 50px;
}

.flow-arrow {
    font-size: 24px;
    font-weight: bold;
    color: rgb(50, 150, 250);
}

.flow-split {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ===== MIND MAP STYLES ===== */
.mindmap-container {
    background: linear-gradient(135deg, rgb(248, 252, 255), rgb(252, 254, 255));
    border: 3px solid rgb(100, 180, 255);
    border-radius: 12px;
    padding: 40px;
    margin: 25px 0;
    overflow-x: auto;
}

.mindmap {
    position: relative;
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mind-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgb(30, 80, 180), rgb(50, 120, 220));
    color: white;
    border: 4px solid rgb(20, 60, 150);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.mind-branch {
    position: absolute;
}

.mind-node {
    background: linear-gradient(135deg, rgb(50, 150, 250), rgb(70, 170, 255));
    color: white;
    border: 3px solid rgb(30, 120, 220);
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.mind-sub {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mind-subnode {
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(245, 250, 255));
    border: 2px solid rgb(100, 180, 255);
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 13px;
    color: rgb(40, 100, 200);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Mind Map Branch Positioning */
.branch-1 { top: 50px; left: 50%; transform: translateX(-50%); }
.branch-2 { top: 250px; left: 100px; }
.branch-3 { top: 250px; right: 100px; }
.branch-4 { bottom: 180px; left: 100px; }
.branch-5 { bottom: 180px; right: 100px; }
.branch-6 { bottom: 50px; left: 50%; transform: translateX(-50%); }

/* ===== TIPS GRID ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip-card {
    background: linear-gradient(135deg, rgb(245, 255, 250), rgb(250, 255, 252));
    border: 3px solid rgb(80, 200, 120);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.tip-card h3 {
    color: rgb(20, 120, 60);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.tip-card p {
    color: rgb(40, 40, 40);
    font-weight: 600;
    font-size: 15px;
}

/* ===== FOOTER ===== */
.main-footer {
    text-align: center;
    background: linear-gradient(135deg, rgb(30, 80, 180), rgb(50, 120, 220));
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    border: 4px solid rgb(20, 60, 150);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.main-footer p {
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
}

.main-footer .copyright {
    font-size: 14px;
    color: rgb(200, 220, 255);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .container {
        margin-left: 320px;
    }
}

@media (max-width: 1200px) {
    .navigation-menu {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .container {
        margin: 20px auto;
    }
    
    .print-button-container {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .comparison-box {
        flex-direction: column;
    }
    
    .flow-split {
        flex-direction: column;
        gap: 15px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header h1 {
        font-size: 28px;
    }
    
    .mindmap {
        min-height: 1000px;
    }
    
    .branch-1, .branch-6 { position: static; transform: none; }
    .branch-2, .branch-3, .branch-4, .branch-5 { position: static; }
    
    .mindmap {
        flex-direction: column;
        gap: 20px;
    }
    
    .mind-center {
        position: static;
        transform: none;
        margin-bottom: 30px;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SUMMARY TABLE ===== */
.summary-table td {
    vertical-align: top;
}

.summary-table tbody tr td:first-child {
    font-weight: bold;
    color: rgb(30, 80, 180);
}