/* Death of a Partner - Practice Problems CSS */
/* Easy, Medium, Hard Difficulty Levels - WBCHSE Class 12 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, rgb(15, 32, 39) 0%, rgb(32, 58, 67) 50%, rgb(44, 83, 100) 100%);
    color: rgb(255, 255, 255);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%);
    padding: 45px;
    text-align: center;
    border-radius: 20px;
    border: 4px solid rgb(100, 149, 237);
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

header h1 {
    font-size: 3.5em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

header h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(173, 216, 230);
    margin-bottom: 12px;
}

header h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: rgb(144, 238, 144);
    margin-bottom: 20px;
}

.print-btn {
    background: linear-gradient(135deg, rgb(34, 139, 34) 0%, rgb(50, 205, 50) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(144, 238, 144);
    padding: 14px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(50, 205, 50) 0%, rgb(34, 139, 34) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.topic-nav {
    background: linear-gradient(135deg, rgb(30, 48, 80) 0%, rgb(42, 67, 101) 100%);
    padding: 35px;
    border-radius: 15px;
    border: 4px solid rgb(70, 130, 180);
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.topic-nav h3 {
    font-size: 2.2em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(30, 144, 255) 0%, rgb(0, 105, 217) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(100, 149, 237);
    padding: 16px 22px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(0, 191, 255) 0%, rgb(30, 144, 255) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.6);
    border-color: rgb(255, 215, 0);
}

/* Topic Sections */
.topic-section {
    background: linear-gradient(135deg, rgb(44, 62, 80) 0%, rgb(52, 73, 94) 100%);
    padding: 45px;
    border-radius: 15px;
    border: 4px solid rgb(95, 158, 160);
    margin-bottom: 35px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    position: relative;
}

.topic-section h2 {
    font-size: 2.8em;
    font-weight: bold;
    color: rgb(255, 215, 0);
    margin-bottom: 30px;
    border-bottom: 5px solid rgb(255, 215, 0);
    padding-bottom: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    margin: 20px 0 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.difficulty-badge.easy {
    background: linear-gradient(135deg, rgb(76, 175, 80) 0%, rgb(129, 199, 132) 100%);
    color: rgb(255, 255, 255);
    border: 3px 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: 3px 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: 3px solid rgb(183, 28, 28);
}

/* Problem Boxes */
.problem-box {
    background: linear-gradient(135deg, rgb(30, 30, 46) 0%, rgb(40, 40, 58) 100%);
    padding: 30px;
    border-radius: 12px;
    border: 3px solid rgb(100, 149, 237);
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.problem-box h3 {
    font-size: 1.9em;
    font-weight: bold;
    color: rgb(135, 206, 250);
    margin-bottom: 20px;
}

.problem-box p {
    font-size: 1.15em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

.problem-box strong {
    color: rgb(255, 215, 0);
}

.problem-box ul {
    margin-left: 35px;
    margin-bottom: 20px;
}

.problem-box ul li {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(240, 240, 245);
    margin-bottom: 12px;
}

/* Solution Boxes */
.solution-box {
    background: linear-gradient(135deg, rgb(22, 22, 38) 0%, rgb(33, 33, 50) 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 6px solid rgb(50, 205, 50);
    margin-top: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.solution-box p {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(240, 248, 255);
}

.solution-box ul {
    margin-left: 30px;
}

.solution-box ul li {
    font-size: 1.05em;
    color: rgb(230, 230, 245);
}

/* Tables */
.accounting-table, .calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgb(20, 20, 35);
    border: 4px solid rgb(70, 130, 180);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.accounting-table thead, .calculation-table thead {
    background: linear-gradient(135deg, rgb(31, 58, 147) 0%, rgb(42, 82, 152) 100%);
}

.accounting-table th, .calculation-table th {
    padding: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 1.15em;
    color: rgb(255, 255, 255);
    border: 2px solid rgb(70, 130, 180);
}

.accounting-table td, .calculation-table td {
    padding: 14px;
    border: 2px solid rgb(70, 130, 180);
    font-weight: bold;
    font-size: 1.05em;
    color: rgb(240, 248, 255);
}

.accounting-table tbody tr:nth-child(even),
.calculation-table tbody tr:nth-child(even) {
    background: rgb(35, 35, 52);
}

.accounting-table tbody tr:nth-child(odd),
.calculation-table tbody tr:nth-child(odd) {
    background: rgb(28, 28, 44);
}

.total-row {
    background: linear-gradient(135deg, rgb(25, 42, 86) 0%, rgb(38, 70, 83) 100%) !important;
}

.total-row td {
    font-size: 1.2em;
    color: rgb(255, 215, 0) !important;
    font-weight: bold;
}

/* Info Text */
.info-text {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(173, 216, 230);
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 10px;
    border: 2px dashed rgb(100, 149, 237);
}

/* Flowchart, Mind Map, Roadmap Containers */
.flowchart-container, .mindmap-container, .roadmap-container {
    background: linear-gradient(135deg, rgb(245, 245, 250) 0%, rgb(230, 230, 245) 100%);
    padding: 35px;
    border-radius: 15px;
    border: 4px solid rgb(100, 149, 237);
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(31, 58, 147) 0%, rgb(42, 82, 152) 100%);
    padding: 35px;
    border-radius: 15px;
    border: 4px solid rgb(100, 149, 237);
    margin-top: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.disclaimer {
    text-align: center;
}

.disclaimer p {
    font-size: 1.15em;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 18px;
    line-height: 1.8;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .print-btn, .topic-nav {
        display: none;
    }
    
    .topic-section {
        page-break-inside: avoid;
        border: 3px solid black;
        background: white;
    }
    
    .topic-section h2 {
        color: black;
    }
    
    .difficulty-badge {
        border: 2px solid black;
        color: black !important;
        background: white !important;
    }
    
    .problem-box, .solution-box {
        background: white;
        border: 2px solid black;
    }
    
    .accounting-table, .calculation-table {
        border: 2px solid black;
    }
    
    .accounting-table th, .calculation-table th,
    .accounting-table td, .calculation-table td {
        border: 1px solid black;
        color: black;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    
    header h2 {
        font-size: 1.5em;
    }
    
    header h3 {
        font-size: 1.2em;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .topic-section {
        padding: 25px;
    }
    
    .topic-section h2 {
        font-size: 2em;
    }
    
    .problem-box {
        padding: 20px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgb(255, 69, 0) 0%, rgb(255, 140, 0) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(255, 215, 0);
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, rgb(255, 215, 0) 0%, rgb(255, 140, 0) 100%);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Search Box */
.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.search-container input {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    border: 3px solid rgb(100, 149, 237);
    border-radius: 25px;
    background: rgb(40, 44, 52);
    color: rgb(255, 255, 255);
    width: 250px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    width: 300px;
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.6);
}