/* ICDS IX - Borrowing Costs Stylesheet */

/* Reset and 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.8;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(25, 118, 210), rgb(13, 71, 161));
    color: rgb(255, 255, 255);
    padding: 40px;
    text-align: center;
    border-bottom: 5px solid rgb(21, 101, 192);
}

header h1 {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(187, 222, 251);
}

.disclaimer {
    font-size: 1em;
    font-weight: 600;
    font-style: italic;
    color: rgb(255, 235, 59);
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

/* Print Section */
.print-section {
    text-align: center;
    padding: 20px;
    background-color: rgb(245, 245, 245);
    border-bottom: 3px solid rgb(200, 200, 200);
}

.print-btn {
    background: linear-gradient(135deg, rgb(67, 160, 71), rgb(46, 125, 50));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(27, 94, 32);
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(56, 142, 60), rgb(27, 94, 32));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navigation {
    background-color: rgb(33, 150, 243);
    padding: 25px;
    border-bottom: 4px solid rgb(13, 71, 161);
}

.navigation h3 {
    color: rgb(255, 255, 255);
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.navigation ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.navigation li button {
    width: 100%;
    background: linear-gradient(135deg, rgb(25, 118, 210), rgb(21, 101, 192));
    color: rgb(255, 255, 255);
    border: 2px solid rgb(13, 71, 161);
    padding: 12px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation li button:hover {
    background: linear-gradient(135deg, rgb(21, 101, 192), rgb(13, 71, 161));
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content Styles */
main {
    padding: 30px;
}

.content-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgb(250, 250, 250);
    border: 3px solid rgb(33, 150, 243);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: rgb(13, 71, 161);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(33, 150, 243);
}

.content-section h3 {
    color: rgb(21, 101, 192);
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 6px solid rgb(33, 150, 243);
}

.content-section h4 {
    color: rgb(25, 118, 210);
    font-size: 1.4em;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 12px;
    font-weight: 700;
    color: rgb(40, 40, 40);
}

.content-section p {
    margin-bottom: 15px;
    font-weight: 600;
    color: rgb(50, 50, 50);
}

strong {
    font-weight: 800;
    color: rgb(13, 71, 161);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(33, 150, 243);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

th {
    background: linear-gradient(135deg, rgb(25, 118, 210), rgb(21, 101, 192));
    color: rgb(255, 255, 255);
    padding: 15px;
    text-align: left;
    font-weight: 800;
    font-size: 1.1em;
    border: 2px solid rgb(13, 71, 161);
}

td {
    padding: 12px 15px;
    border: 2px solid rgb(144, 202, 249);
    font-weight: 700;
    color: rgb(30, 30, 30);
}

tr:nth-child(even) {
    background-color: rgb(227, 242, 253);
}

tr:hover {
    background-color: rgb(187, 222, 251);
}

/* Example and Formula Boxes */
.example-box, .formula-box, .principle-box, .summary-box {
    background-color: rgb(255, 249, 196);
    border: 3px solid rgb(255, 193, 7);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.example-box h4, .formula-box p:first-child {
    color: rgb(245, 124, 0);
    font-weight: 800;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.formula-box {
    background-color: rgb(232, 245, 233);
    border-color: rgb(76, 175, 80);
}

.formula-box p {
    font-weight: 800;
    color: rgb(27, 94, 32);
    font-size: 1.1em;
    margin: 10px 0;
}

/* Case Law Boxes */
.caselaw-box {
    background-color: rgb(255, 245, 230);
    border: 3px solid rgb(255, 152, 0);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.caselaw-box h4 {
    color: rgb(230, 81, 0);
    font-weight: 800;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: 3px solid rgb(255, 152, 0);
    padding-bottom: 10px;
}

/* Flowchart Styles */
.flowchart-container {
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(33, 150, 243);
    border-radius: 10px;
    padding: 30px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flowchart-start {
    fill: rgb(76, 175, 80);
    stroke: rgb(27, 94, 32);
    stroke-width: 3;
}

.flowchart-end {
    fill: rgb(244, 67, 54);
    stroke: rgb(198, 40, 40);
    stroke-width: 3;
}

.flowchart-decision {
    fill: rgb(255, 193, 7);
    stroke: rgb(245, 124, 0);
    stroke-width: 3;
}

.flowchart-process {
    fill: rgb(33, 150, 243);
    stroke: rgb(13, 71, 161);
    stroke-width: 3;
}

.flowchart-line {
    stroke: rgb(30, 30, 30);
    stroke-width: 2;
    fill: none;
}

.flowchart-text {
    fill: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
}

.flowchart-text-small {
    fill: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
}

/* Mind Map Styles */
.mindmap-container {
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(156, 39, 176);
    border-radius: 10px;
    padding: 30px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mindmap-central {
    fill: rgb(156, 39, 176);
    stroke: rgb(106, 27, 154);
    stroke-width: 4;
}

.mindmap-branch1 {
    fill: rgb(33, 150, 243);
    stroke: rgb(13, 71, 161);
    stroke-width: 3;
}

.mindmap-branch2 {
    fill: rgb(76, 175, 80);
    stroke: rgb(27, 94, 32);
    stroke-width: 3;
}

.mindmap-branch3 {
    fill: rgb(255, 152, 0);
    stroke: rgb(230, 81, 0);
    stroke-width: 3;
}

.mindmap-branch4 {
    fill: rgb(244, 67, 54);
    stroke: rgb(198, 40, 40);
    stroke-width: 3;
}

.mindmap-branch5 {
    fill: rgb(103, 58, 183);
    stroke: rgb(74, 20, 140);
    stroke-width: 3;
}

.mindmap-line {
    stroke: rgb(100, 100, 100);
    stroke-width: 2;
}

.mindmap-text {
    fill: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: 800;
    text-anchor: middle;
}

.mindmap-text-large {
    fill: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
}

.mindmap-text-small {
    fill: rgb(255, 255, 255);
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
}

/* Q&A Section Styles */
.qa-container {
    margin-top: 30px;
}

.qa-item {
    margin-bottom: 20px;
    border: 3px solid rgb(33, 150, 243);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.question-btn {
    width: 100%;
    background: linear-gradient(135deg, rgb(25, 118, 210), rgb(21, 101, 192));
    color: rgb(255, 255, 255);
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.question-btn:hover {
    background: linear-gradient(135deg, rgb(21, 101, 192), rgb(13, 71, 161));
}

.question-number {
    color: rgb(255, 193, 7);
    font-weight: 800;
    margin-right: 10px;
}

.toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.question-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.answer {
    display: none;
    padding: 25px;
    background-color: rgb(227, 242, 253);
    border-top: 3px solid rgb(144, 202, 249);
}

.answer.show {
    display: block;
}

.answer p {
    font-weight: 700;
    color: rgb(30, 30, 30);
    margin-bottom: 15px;
}

.answer ul, .answer ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.answer li {
    font-weight: 700;
    color: rgb(30, 30, 30);
    margin-bottom: 10px;
}

.answer table {
    margin: 20px 0;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgb(38, 50, 56), rgb(55, 71, 79));
    color: rgb(255, 255, 255);
    padding: 30px;
    text-align: center;
    border-top: 4px solid rgb(55, 71, 79);
}

footer p {
    margin: 10px 0;
    font-weight: 700;
}

/* Print Styles */
@media print {
    .navigation, .print-section {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid rgb(150, 150, 150);
    }
    
    .question-btn {
        background: rgb(200, 200, 200) !important;
        color: rgb(0, 0, 0) !important;
    }
    
    .answer {
        display: block !important;
    }
    
    a {
        color: rgb(0, 0, 0);
        text-decoration: underline;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .navigation ul {
        grid-template-columns: 1fr;
    }
    
    .content-section h2 {
        font-size: 1.8em;
    }
    
    .content-section h3 {
        font-size: 1.5em;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .flowchart-container svg, .mindmap-container svg {
        width: 100%;
        height: auto;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(33, 150, 243);
    color: rgb(255, 255, 255);
}