/* Death of a Partner - Professional CSS */
/* WBCHSE Class 12 Accountancy */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, rgb(15, 25, 45) 0%, rgb(28, 45, 75) 50%, rgb(40, 60, 95) 100%);
    color: rgb(255, 255, 255);
    line-height: 1.8;
    min-height: 100vh;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 35px;
}

/* HEADER */
header {
    background: linear-gradient(135deg, rgb(18, 35, 75) 0%, rgb(30, 55, 100) 100%);
    padding: 55px;
    text-align: center;
    border-radius: 22px;
    border: 6px solid rgb(100, 149, 237);
    margin-bottom: 45px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.8);
}

header h1 {
    font-size: 4.2em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 22px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
}

header h2 {
    font-size: 2.7em;
    font-weight: bold;
    color: rgb(173, 216, 230);
    margin-bottom: 18px;
}

header h3 {
    font-size: 2em;
    font-weight: bold;
    color: rgb(144, 238, 144);
    margin-bottom: 18px;
}

header h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(255, 182, 193);
    margin-bottom: 28px;
}

.print-btn {
    background: linear-gradient(135deg, rgb(34, 139, 34) 0%, rgb(50, 205, 50) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(144, 238, 144);
    padding: 20px 45px;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(50, 205, 50) 0%, rgb(34, 139, 34) 100%);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 35px rgba(50, 205, 50, 0.7);
}

/* NAVIGATION */
.topic-nav {
    background: linear-gradient(135deg, rgb(22, 40, 78) 0%, rgb(35, 60, 95) 100%);
    padding: 45px;
    border-radius: 20px;
    border: 6px solid rgb(70, 130, 180);
    margin-bottom: 45px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.topic-nav h3 {
    font-size: 2.7em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 35px;
    text-align: center;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(30, 144, 255) 0%, rgb(0, 105, 217) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(100, 149, 237);
    padding: 22px 28px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(0, 191, 255) 0%, rgb(30, 144, 255) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.8);
    border-color: rgb(255, 215, 0);
}

/* TOPIC SECTIONS */
.topic-section {
    background: linear-gradient(135deg, rgb(38, 50, 70) 0%, rgb(48, 60, 80) 100%);
    padding: 55px;
    border-radius: 20px;
    border: 6px solid rgb(95, 158, 160);
    margin-bottom: 45px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

.topic-section h2 {
    font-size: 3.5em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 40px;
    border-bottom: 7px solid rgb(255, 215, 0);
    padding-bottom: 22px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

/* CONCEPT BOXES */
.concept-box {
    background: linear-gradient(135deg, rgb(22, 35, 55) 0%, rgb(32, 45, 65) 100%);
    padding: 40px;
    border-radius: 18px;
    border: 5px solid rgb(100, 149, 237);
    margin-bottom: 40px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.concept-box h3 {
    font-size: 2.4em;
    font-weight: bold;
    color: rgb(135, 206, 250);
    margin-bottom: 25px;
}

.concept-box p {
    font-size: 1.25em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 20px;
}

.concept-box ul {
    margin-left: 45px;
    margin-top: 22px;
}

.concept-box ul li {
    font-size: 1.18em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 18px;
    line-height: 1.9;
}

/* FORMULA BOXES */
.formula-box {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 4px solid rgb(255, 215, 0);
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.formula-box h4 {
    font-size: 1.9em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 20px;
}

/* METHOD GRID */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.method-card {
    background: linear-gradient(135deg, rgb(28, 42, 62) 0%, rgb(38, 52, 72) 100%);
    padding: 28px;
    border-radius: 15px;
    border: 4px solid rgb(70, 130, 180);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(100, 149, 237, 0.7);
    border-color: rgb(255, 215, 0);
}

.method-card h4 {
    font-size: 1.7em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 18px;
}

.method-card p {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 12px;
}

/* DIFFICULTY BADGES */
.difficulty-badge {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 35px;
    margin: 28px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

.difficulty-badge.easy {
    background: linear-gradient(135deg, rgb(76, 175, 80) 0%, rgb(129, 199, 132) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(27, 94, 32);
}

.difficulty-badge.medium {
    background: linear-gradient(135deg, rgb(255, 152, 0) 0%, rgb(255, 193, 7) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(230, 81, 0);
}

.difficulty-badge.hard {
    background: linear-gradient(135deg, rgb(244, 67, 54) 0%, rgb(229, 57, 53) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(183, 28, 28);
}

/* PROBLEM BOXES */
.problem-box {
    background: linear-gradient(135deg, rgb(26, 32, 48) 0%, rgb(36, 42, 58) 100%);
    padding: 40px;
    border-radius: 18px;
    border: 5px solid rgb(100, 149, 237);
    margin: 35px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.problem-box h3 {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(135, 206, 250);
    margin-bottom: 28px;
}

.problem-box p {
    font-size: 1.25em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

.problem-box strong {
    color: rgb(255, 215, 0);
}

.problem-box ul {
    margin-left: 45px;
    margin-bottom: 22px;
}

.problem-box ul li {
    font-size: 1.18em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 15px;
}

/* SOLUTION BOXES */
.solution-box {
    background: linear-gradient(135deg, rgb(18, 23, 38) 0%, rgb(28, 33, 48) 100%);
    padding: 35px;
    border-radius: 15px;
    border-left: 10px solid rgb(50, 205, 50);
    margin-top: 28px;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5);
}

.solution-box h4 {
    font-size: 2em;
    font-weight: bold;
    color: rgb(144, 238, 144);
    margin-bottom: 25px;
}

.solution-box p {
    font-size: 1.18em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 18px;
}

/* ANSWER HIGHLIGHT */
.answer-highlight {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%);
    padding: 22px;
    border-radius: 12px;
    border: 4px solid rgb(255, 215, 0);
    margin-top: 22px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.answer-highlight p {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 12px;
}

/* TABLES */
.accounting-table, .calculation-table, .format-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: rgb(18, 23, 38);
    border: 5px solid rgb(70, 130, 180);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.accounting-table thead, .calculation-table thead, .format-table thead {
    background: linear-gradient(135deg, rgb(31, 58, 147) 0%, rgb(42, 82, 152) 100%);
}

.accounting-table th, .calculation-table th, .format-table th {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.25em;
    color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
}

.accounting-table td, .calculation-table td, .format-table td {
    padding: 18px;
    border: 3px solid rgb(70, 130, 180);
    font-weight: bold;
    font-size: 1.15em;
    color: rgb(240, 248, 255);
}

.accounting-table tbody tr:nth-child(even),
.calculation-table tbody tr:nth-child(even) {
    background: rgb(33, 38, 53);
}

.accounting-table tbody tr:nth-child(odd),
.calculation-table tbody tr:nth-child(odd) {
    background: rgb(26, 31, 46);
}

.total-row {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%) !important;
}

.total-row td {
    font-size: 1.3em;
    color: rgb(255, 215, 0) !important;
    font-weight: bold;
}

/* INFO NOTE */
.info-note {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 8px solid rgb(0, 191, 255);
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.info-note p {
    font-size: 1.25em;
    font-weight: bold;
    color: rgb(173, 216, 230);
    margin-bottom: 18px;
}

.info-note ul {
    margin-left: 40px;
}

.info-note ul li {
    font-size: 1.15em;
    font-weight: bold;
    color: rgb(240, 248, 255);
    margin-bottom: 15px;
}

/* FLOWCHART CONTAINER */
.flowchart-container, .mindmap-container, .roadmap-container {
    background: linear-gradient(135deg, rgb(245, 245, 250) 0%, rgb(230, 230, 245) 100%);
    padding: 45px;
    border-radius: 20px;
    border: 6px solid rgb(100, 149, 237);
    overflow-x: auto;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
    margin-top: 35px;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, rgb(31, 58, 147) 0%, rgb(42, 82, 152) 100%);
    padding: 45px;
    border-radius: 20px;
    border: 6px solid rgb(100, 149, 237);
    margin-top: 55px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
}

.disclaimer {
    text-align: center;
}

.disclaimer p {
    font-size: 1.25em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 22px;
    line-height: 2.1;
}

/* PRINT STYLES */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .print-btn, .topic-nav {
        display: none;
    }
    
    .topic-section {
        page-break-inside: avoid;
        border: 4px solid black;
        background: white;
    }
    
    .difficulty-badge {
        border: 3px solid black;
        color: black !important;
        background: white !important;
    }
    
    .accounting-table, .calculation-table {
        border: 3px solid black;
    }
    
    .accounting-table th, .calculation-table th,
    .accounting-table td, .calculation-table td {
        border: 2px solid black;
        color: black;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8em;
    }
    
    header h2 {
        font-size: 2em;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, rgb(255, 69, 0) 0%, rgb(255, 140, 0) 100%);
    color: rgb(255, 255, 255);
    border: 5px solid rgb(255, 215, 0);
    padding: 20px 32px;
    font-size: 1.25em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.8);
}

/* PROGRESS BAR */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 8px;
    background: linear-gradient(90deg, rgb(255, 215, 0) 0%, rgb(255, 140, 0) 100%);
    z-index: 1001;
    transition: width 0.15s ease;
}