/* 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;
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(230, 245, 255));
    color: rgb(30, 30, 30);
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(41, 128, 185);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(41, 128, 185, 0.3);
    padding: 40px;
}

/* Header Styles */
header {
    text-align: center;
    background: linear-gradient(135deg, rgb(41, 128, 185), rgb(52, 152, 219));
    color: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(31, 97, 141);
    position: relative;
}

header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(255, 235, 205);
}

header h3 {
    font-size: 24px;
    font-weight: bold;
    color: rgb(255, 250, 205);
}

.print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgb(46, 204, 113);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(39, 174, 96);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: rgb(39, 174, 96);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* Disclaimer */
.disclaimer {
    background-color: rgb(255, 243, 205);
    border: 3px solid rgb(255, 193, 7);
    border-left: 8px solid rgb(255, 152, 0);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-weight: bold;
    color: rgb(102, 51, 0);
    font-size: 15px;
}

/* Navigation */
.navigation {
    background: linear-gradient(135deg, rgb(155, 89, 182), rgb(142, 68, 173));
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(125, 60, 152);
}

.navigation h3 {
    color: rgb(255, 255, 255);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    background-color: rgb(52, 152, 219);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(41, 128, 185);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-buttons button:hover {
    background-color: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgb(248, 249, 250);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.content-section h2 {
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgb(231, 76, 60), rgb(192, 57, 43));
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
    border: 3px solid rgb(169, 50, 38);
    text-align: center;
}

.subsection {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(149, 165, 166);
    border-left: 6px solid rgb(52, 152, 219);
    border-radius: 8px;
}

.subsection h3 {
    color: rgb(41, 128, 185);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(52, 152, 219);
}

.subsection h4 {
    color: rgb(231, 76, 60);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    margin-top: 15px;
}

.subsection p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgb(44, 62, 80);
}

.subsection ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.subsection ul li {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.7;
    color: rgb(52, 73, 94);
}

.subsection ul li strong {
    color: rgb(231, 76, 60);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

thead {
    background: linear-gradient(135deg, rgb(41, 128, 185), rgb(52, 152, 219));
}

thead tr th {
    color: rgb(255, 255, 255);
    padding: 18px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid rgb(31, 97, 141);
}

tbody tr {
    border-bottom: 2px solid rgb(189, 195, 199);
}

tbody tr:nth-child(even) {
    background-color: rgb(236, 240, 241);
}

tbody tr:hover {
    background-color: rgb(220, 237, 249);
}

tbody tr td {
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: rgb(44, 62, 80);
    border: 1px solid rgb(189, 195, 199);
}

tbody tr td strong {
    color: rgb(231, 76, 60);
}

.comparison-table {
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    font-weight: bold;
}

/* Example Boxes */
.example-box {
    background-color: rgb(255, 250, 240);
    border: 3px solid rgb(255, 193, 7);
    border-left: 8px solid rgb(255, 152, 0);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box h4 {
    color: rgb(230, 126, 34);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.example-box p {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
}

.example-box ul {
    margin-left: 25px;
}

.example-box ul li {
    font-weight: bold;
    margin-bottom: 8px;
}

.example-box table {
    border: 2px solid rgb(230, 126, 34);
    margin-top: 15px;
}

.example-box table thead {
    background: linear-gradient(135deg, rgb(230, 126, 34), rgb(211, 84, 0));
}

/* Case Law Boxes */
.case-law {
    background-color: rgb(245, 247, 250);
    border: 3px solid rgb(52, 73, 94);
    border-left: 8px solid rgb(41, 128, 185);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.case-law h4 {
    color: rgb(41, 128, 185);
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
}

.case-law p {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
}

.case-law p strong {
    color: rgb(231, 76, 60);
}

/* Two Column List */
.two-column-list ul {
    columns: 2;
    column-gap: 30px;
}

/* Flowchart Styles */
.flowchart {
    padding: 30px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(52, 152, 219);
    border-radius: 10px;
    margin: 30px 0;
    overflow-x: auto;
}

.flowchart-box {
    background-color: rgb(52, 152, 219);
    color: rgb(255, 255, 255);
    padding: 15px 20px;
    border-radius: 8px;
    border: 3px solid rgb(41, 128, 185);
    margin: 15px auto;
    max-width: 400px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.flowchart-box.start {
    background: linear-gradient(135deg, rgb(46, 204, 113), rgb(39, 174, 96));
    border-color: rgb(34, 153, 84);
}

.flowchart-box.decision {
    background: linear-gradient(135deg, rgb(230, 126, 34), rgb(211, 84, 0));
    border-color: rgb(186, 74, 0);
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    padding: 20px 30px;
}

.flowchart-box.result {
    background: linear-gradient(135deg, rgb(155, 89, 182), rgb(142, 68, 173));
    border-color: rgb(125, 60, 152);
}

.flowchart-box.result.success {
    background: linear-gradient(135deg, rgb(46, 204, 113), rgb(39, 174, 96));
    border-color: rgb(34, 153, 84);
}

.flowchart-box.info {
    background: linear-gradient(135deg, rgb(52, 152, 219), rgb(41, 128, 185));
    border-color: rgb(31, 97, 141);
}

.flowchart-arrow {
    text-align: center;
    color: rgb(52, 152, 219);
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
}

.flowchart-split {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}

.flowchart-branch {
    flex: 1;
}

.flowchart-label {
    text-align: center;
    color: rgb(231, 76, 60);
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

/* Mind Map Container */
.mindmap-container {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border: 3px solid rgb(52, 152, 219);
    border-radius: 10px;
    margin: 30px 0;
    overflow-x: auto;
}

#mindmapSVG {
    display: block;
    margin: 0 auto;
}

#mindmapSVG text {
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    background: linear-gradient(135deg, rgb(44, 62, 80), rgb(52, 73, 94));
    color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    border: 3px solid rgb(39, 55, 70);
}

footer p {
    margin: 8px 0;
    font-size: 15px;
    font-weight: bold;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        border: none;
        box-shadow: none;
        padding: 20px;
    }

    .print-btn {
        display: none;
    }

    .navigation {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        border: 2px solid rgb(52, 152, 219);
    }

    .subsection {
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
    }

    .example-box,
    .case-law {
        page-break-inside: avoid;
    }

    header h1 {
        color: rgb(41, 128, 185);
    }

    header h2,
    header h3 {
        color: rgb(52, 73, 94);
    }

    .flowchart {
        page-break-inside: avoid;
    }

    .mindmap-container {
        page-break-before: always;
    }

    footer {
        page-break-before: avoid;
    }

    /* Ensure all colors print correctly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        padding: 25px;
    }

    header h1 {
        font-size: 36px;
    }

    header h2 {
        font-size: 28px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .flowchart-split {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 25px;
    }

    header h1 {
        font-size: 28px;
    }

    header h2 {
        font-size: 22px;
    }

    header h3 {
        font-size: 18px;
    }

    .print-btn {
        position: static;
        margin-top: 15px;
        width: 100%;
    }

    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .subsection h3 {
        font-size: 18px;
    }

    .two-column-list ul {
        columns: 1;
    }

    table {
        font-size: 13px;
    }

    thead tr th,
    tbody tr td {
        padding: 10px;
    }

    .comparison-table {
        font-size: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid rgb(52, 152, 219);
    outline-offset: 2px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Table Responsive Container */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

/* Highlight on Scroll */
.content-section:target {
    animation: highlightSection 2s ease;
}

@keyframes highlightSection {
    0% {
        background-color: rgb(255, 243, 205);
    }
    100% {
        background-color: rgb(248, 249, 250);
    }
}