/* Copyright Act Chapter IX - Professional Stylesheet */

/* Color Scheme */
:root {
    --primary-bg: rgb(240, 248, 255);
    --secondary-bg: rgb(255, 250, 240);
    --header-bg: rgb(25, 55, 109);
    --section-bg: rgb(255, 255, 255);
    --border-color: rgb(70, 130, 180);
    --accent-color: rgb(220, 20, 60);
    --text-color: rgb(33, 33, 33);
    --heading-color: rgb(25, 55, 109);
    --box-shadow: rgba(0, 0, 0, 0.1);
    --highlight-bg: rgb(255, 248, 220);
    --table-header: rgb(70, 130, 180);
    --table-alt-row: rgb(245, 250, 255);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 30px var(--box-shadow);
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--header-bg) 0%, rgb(41, 182, 163) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--border-color);
    box-shadow: 0 5px 15px var(--box-shadow);
}

.main-header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.main-header h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(255, 215, 0);
}

.subtitle {
    font-size: 1.1em;
    font-weight: bold;
    font-style: italic;
    margin-top: 10px;
}

/* Print Button */
.print-btn {
    background-color: rgb(220, 20, 60);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(178, 34, 34);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Disclaimer */
.disclaimer {
    background-color: rgb(255, 248, 220);
    border: 3px solid rgb(255, 193, 7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    color: rgb(139, 69, 19);
}

/* Quick Navigation */
.quick-nav {
    background-color: var(--section-bg);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 12px var(--box-shadow);
}

.quick-nav h3 {
    color: var(--heading-color);
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
}

.quick-nav ul {
    list-style: none;
}

.quick-nav li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.quick-nav li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.quick-nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-nav a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Section Content */
.section-content {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--section-bg);
    border: 3px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--box-shadow);
}

.section-content h2 {
    color: var(--heading-color);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 4px solid var(--border-color);
    padding-bottom: 15px;
}

/* Section Boxes */
.section-box {
    margin: 25px 0;
    padding: 25px;
    background-color: var(--highlight-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--box-shadow);
}

.section-box h3 {
    color: var(--heading-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-box p {
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.9;
}

.section-box ul {
    margin-left: 25px;
}

.section-box li {
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.9;
}

.section-box strong {
    color: var(--heading-color);
    font-weight: bold;
}

/* Example Box */
.example-box {
    background-color: rgb(240, 255, 240);
    border: 3px solid rgb(34, 139, 34);
    border-radius: 10px;
    padding: 25px;
    margin-top: 15px;
}

.example-box p {
    font-weight: bold;
    margin-bottom: 12px;
}

.example-box ul, .example-box ol {
    margin-left: 25px;
}

.example-box li {
    font-weight: bold;
    margin: 8px 0;
}

/* Case Box */
.case-box {
    background-color: rgb(255, 248, 240);
    border: 3px solid rgb(184, 134, 11);
    border-radius: 10px;
    padding: 25px;
    margin-top: 15px;
}

.case-box h4 {
    color: rgb(139, 69, 19);
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    font-style: italic;
}

.case-box p {
    font-weight: bold;
    margin-bottom: 12px;
}

.case-box ul {
    margin-left: 25px;
}

.case-box li {
    font-weight: bold;
    margin: 8px 0;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px var(--box-shadow);
    border: 3px solid var(--border-color);
}

.info-table th {
    background: linear-gradient(135deg, var(--table-header) 0%, rgb(100, 149, 237) 100%);
    color: white;
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid var(--border-color);
}

.info-table td {
    padding: 15px;
    border: 2px solid var(--border-color);
    font-weight: bold;
}

.info-table tr:nth-child(even) {
    background-color: var(--table-alt-row);
}

.info-table tr:hover {
    background-color: rgb(255, 248, 220);
    transition: background-color 0.3s ease;
}

/* Canvas Containers */
.flowchart-container,
.mindmap-container,
.roadmap-container {
    background-color: white;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px var(--box-shadow);
    overflow-x: auto;
}

canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--header-bg) 0%, rgb(41, 82, 163) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    border-radius: 10px;
    border: 3px solid var(--border-color);
}

.main-footer p {
    font-weight: bold;
    margin: 8px 0;
    font-size: 1.05em;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        background: white;
    }
    
    .print-btn {
        display: none;
    }
    
    .section-content {
        page-break-inside: avoid;
        border: 2px solid black;
    }
    
    .section-box {
        page-break-inside: avoid;
    }
    
    .info-table {
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .flowchart-container,
    .mindmap-container,
    .roadmap-container {
        page-break-before: always;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-header h1 {
        font-size: 1.8em;
    }
    
    .main-header h2 {
        font-size: 1.4em;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .section-box {
        padding: 15px;
    }
    
    .info-table {
        font-size: 0.9em;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--accent-color);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}