/* ==============================================
   Death of a Partner - Part 3 Stylesheet
   WBCHSE Class 12 Accountancy
   Professional RGB Color Scheme
   ============================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: rgb(33, 33, 33);
    background: linear-gradient(135deg, rgb(240, 248, 255) 0%, rgb(230, 240, 250) 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(25, 118, 210) 0%, rgb(13, 71, 161) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid rgb(1, 87, 155);
}

.header-container h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.header-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: rgb(187, 222, 251);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(227, 242, 253);
    margin-top: 0.5rem;
}

/* Navigation Styles */
.main-nav {
    background: linear-gradient(135deg, rgb(48, 63, 159) 0%, rgb(26, 35, 126) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid rgb(13, 71, 161);
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(66, 165, 245) 0%, rgb(33, 150, 243) 100%);
    color: white;
    border: 2px solid rgb(25, 118, 210);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(25, 118, 210) 0%, rgb(13, 71, 161) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.print-btn {
    background: linear-gradient(135deg, rgb(102, 187, 106) 0%, rgb(76, 175, 80) 100%);
    border: 2px solid rgb(56, 142, 60);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(56, 142, 60) 0%, rgb(27, 94, 32) 100%);
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(250, 250, 250) 100%);
    padding: 1.5rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(224, 224, 224);
}

.filter-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(25, 118, 210);
    margin-bottom: 1rem;
}

.filter-btn {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 245, 245) 100%);
    color: rgb(66, 66, 66);
    border: 2px solid rgb(189, 189, 189);
    padding: 0.7rem 1.8rem;
    margin: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgb(224, 224, 224) 0%, rgb(200, 200, 200) 100%);
    border-color: rgb(117, 117, 117);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgb(33, 150, 243) 0%, rgb(25, 118, 210) 100%);
    color: white;
    border-color: rgb(13, 71, 161);
}

/* Content Section Styles */
.content-section {
    background: white;
    margin: 2.5rem auto;
    max-width: 1200px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgb(227, 242, 253);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgb(13, 71, 161);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid rgb(66, 165, 245);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Introduction Styles */
.intro-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgb(66, 66, 66);
}

.intro-content p {
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.key-points {
    background: linear-gradient(135deg, rgb(227, 242, 253) 0%, rgb(207, 226, 243) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 6px solid rgb(33, 150, 243);
}

.key-points h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(13, 71, 161);
    margin-bottom: 1rem;
}

.key-points ul {
    list-style: none;
    padding-left: 0;
}

.key-points li {
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgb(33, 33, 33);
}

.key-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(76, 175, 80);
    font-weight: 800;
    font-size: 1.2rem;
}

.disclaimer {
    background: linear-gradient(135deg, rgb(255, 243, 224) 0%, rgb(255, 235, 204) 100%);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 6px solid rgb(255, 152, 0);
    margin-top: 1.5rem;
}

.disclaimer p {
    font-weight: 600;
    color: rgb(230, 81, 0);
    font-style: italic;
    margin-bottom: 0;
}

/* Topic Introduction Styles */
.topic-intro {
    background: linear-gradient(135deg, rgb(232, 245, 233) 0%, rgb(200, 230, 201) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 3px solid rgb(129, 199, 132);
}

.topic-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(27, 94, 32);
    margin-bottom: 1rem;
}

.topic-intro p {
    font-weight: 500;
    color: rgb(51, 51, 51);
    margin-bottom: 1rem;
}

.topic-intro ul {
    list-style: none;
    padding-left: 0;
}

.topic-intro li {
    font-weight: 600;
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
    color: rgb(33, 33, 33);
}

.topic-intro li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgb(76, 175, 80);
    font-weight: 800;
    font-size: 1.3rem;
}

/* Problem Card Styles */
.problem-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 3px solid rgb(224, 224, 224);
    transition: all 0.3s ease;
}

.problem-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.problem-card.easy {
    border-left: 8px solid rgb(76, 175, 80);
}

.problem-card.medium {
    border-left: 8px solid rgb(255, 152, 0);
}

.problem-card.hard {
    border-left: 8px solid rgb(244, 67, 54);
}

.problem-header {
    background: linear-gradient(135deg, rgb(245, 245, 245) 0%, rgb(238, 238, 238) 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgb(224, 224, 224);
}

.problem-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(33, 33, 33);
}

.difficulty-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.easy-badge {
    background: rgb(76, 175, 80);
    color: white;
}

.medium-badge {
    background: rgb(255, 152, 0);
    color: white;
}

.hard-badge {
    background: rgb(244, 67, 54);
    color: white;
}

.problem-content {
    padding: 2rem;
}

.problem-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(25, 118, 210);
    margin-bottom: 1rem;
}

.problem-content p {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgb(66, 66, 66);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 2px solid rgb(224, 224, 224);
    border-radius: 8px;
    overflow: hidden;
}

.data-table tr {
    border-bottom: 1px solid rgb(238, 238, 238);
}

.data-table td {
    padding: 1rem;
    font-weight: 600;
    color: rgb(66, 66, 66);
}

.data-table td:first-child {
    background: rgb(227, 242, 253);
    font-weight: 700;
    color: rgb(13, 71, 161);
    width: 35%;
}

/* Solution Toggle Button */
.solution-toggle {
    background: linear-gradient(135deg, rgb(103, 58, 183) 0%, rgb(81, 45, 168) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.solution-toggle:hover {
    background: linear-gradient(135deg, rgb(81, 45, 168) 0%, rgb(69, 39, 160) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Solution Section Styles */
.solution {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgb(250, 250, 250) 0%, rgb(245, 245, 245) 100%);
    border-radius: 12px;
    border: 2px solid rgb(189, 189, 189);
}

.solution.hidden {
    display: none;
}

.solution h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(103, 58, 183);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.solution h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(13, 71, 161);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgb(66, 165, 245);
}

/* Working Notes Styles */
.working-notes {
    background: white;
    padding: 1.8rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgb(224, 224, 224);
}

.working-notes p {
    font-weight: 600;
    color: rgb(51, 51, 51);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.working-notes p strong {
    color: rgb(13, 71, 161);
    font-weight: 700;
}

/* Journal Entries Table Styles */
.journal-entries {
    margin: 2rem 0;
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 3px solid rgb(13, 71, 161);
    border-radius: 8px;
    overflow: hidden;
}

.journal-table thead {
    background: linear-gradient(135deg, rgb(25, 118, 210) 0%, rgb(13, 71, 161) 100%);
    color: white;
}

.journal-table thead th {
    padding: 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    border-right: 1px solid rgb(66, 165, 245);
}

.journal-table tbody td {
    padding: 1rem;
    font-weight: 600;
    color: rgb(33, 33, 33);
    border-bottom: 1px solid rgb(224, 224, 224);
}

.journal-table tbody tr:nth-child(odd) {
    background: rgb(250, 250, 250);
}

.journal-table tbody tr:nth-child(even) {
    background: white;
}

.journal-table .amount {
    text-align: right;
    font-weight: 700;
    color: rgb(13, 71, 161);
}

.journal-table .narration {
    padding: 0.8rem 1rem;
    font-style: italic;
    font-weight: 500;
    color: rgb(117, 117, 117);
    background: rgb(245, 245, 245) !important;
}

.journal-table .entry-separator {
    height: 1.5rem;
    background: rgb(227, 242, 253) !important;
}

/* Ledger Account Styles */
.ledger-accounts {
    margin: 2rem 0;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 3px solid rgb(76, 175, 80);
    border-radius: 8px;
    overflow: hidden;
}

.ledger-table thead {
    background: linear-gradient(135deg, rgb(102, 187, 106) 0%, rgb(76, 175, 80) 100%);
    color: white;
}

.ledger-table thead th {
    padding: 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    border-right: 1px solid rgb(129, 199, 132);
}

.ledger-table tbody td {
    padding: 1rem;
    font-weight: 600;
    color: rgb(33, 33, 33);
    border-bottom: 1px solid rgb(224, 224, 224);
    border-right: 1px solid rgb(224, 224, 224);
}

.ledger-table .total-row {
    background: rgb(232, 245, 233) !important;
    font-weight: 700;
}

.ledger-table .total-row td {
    border-top: 2px solid rgb(76, 175, 80);
}

/* Verification Box */
.verification {
    background: linear-gradient(135deg, rgb(255, 248, 225) 0%, rgb(255, 243, 205) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 6px solid rgb(255, 193, 7);
}

.verification h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(245, 124, 0);
    margin-bottom: 1rem;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.verification p {
    font-weight: 600;
    color: rgb(51, 51, 51);
    margin-bottom: 0.5rem;
}

/* Answer Box Styles */
.answer-box {
    background: linear-gradient(135deg, rgb(232, 245, 233) 0%, rgb(200, 230, 201) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    border: 3px solid rgb(76, 175, 80);
    margin-top: 2rem;
}

.answer-box h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(27, 94, 32);
    margin-bottom: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.answer-box p {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgb(27, 94, 32);
    margin-bottom: 0.8rem;
    text-align: center;
}

/* Visual Section Styles */
.visual-section {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(250, 250, 250) 100%);
}

.flowchart-container,
.mindmap-container,
.roadmap-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    overflow-x: auto;
    border: 2px solid rgb(224, 224, 224);
}

.flowchart-container svg,
.mindmap-container svg,
.roadmap-container svg {
    display: block;
    margin: 0 auto;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(38, 50, 56) 0%, rgb(55, 71, 79) 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 3rem;
    border-top: 5px solid rgb(25, 118, 210);
}

.footer-content p {
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
}

.disclaimer-footer {
    font-style: italic;
    color: rgb(187, 222, 251);
    font-size: 0.95rem;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .main-nav,
    .filter-section,
    .solution-toggle,
    footer {
        display: none;
    }
    
    .problem-card {
        page-break-inside: avoid;
    }
    
    .solution {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 2rem;
    }
    
    .header-container h2 {
        font-size: 1.2rem;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .content-section {
        padding: 1.5rem;
        margin: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .problem-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .journal-table,
    .ledger-table {
        font-size: 0.85rem;
    }
    
    .flowchart-container svg,
    .mindmap-container svg,
    .roadmap-container svg {
        width: 100%;
        height: auto;
    }
}