/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(45, 180, 220) 100%);
    color: #ffffff;
    line-height: 1.8;
    padding: 20px;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(31, 150, 199, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 5px solid rgb(150, 31, 224);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 4px solid rgb(150, 31, 224);
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3em;
    font-weight: bold;
    color: #f0f0f0;
    font-style: italic;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(150, 31, 224, 0.95);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid rgb(31, 150, 199);
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navigation h2 {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin: 8px 0;
}

.navigation button {
    width: 100%;
    padding: 10px;
    background-color: rgb(31, 150, 199);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: rgb(45, 180, 220);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Print Button */
.print-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background-color: rgb(150, 31, 224);
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: rgb(180, 50, 255);
    transform: scale(1.1);
}

/* Content Sections */
.content-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    border: 3px solid rgb(150, 31, 224);
    backdrop-filter: blur(10px);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgb(150, 31, 224);
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffeb3b;
    margin: 25px 0 15px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.content-section p {
    font-size: 1.1em;
    font-weight: bold;
    margin: 15px 0;
    color: #ffffff;
    text-align: justify;
}

.content-section ul {
    margin: 15px 0 15px 30px;
}

.content-section li {
    font-size: 1.05em;
    font-weight: bold;
    margin: 10px 0;
    color: #ffffff;
    line-height: 1.8;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(255, 255, 255, 0.15);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background-color: rgb(150, 31, 224);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1.15em;
    color: #ffffff;
    border: 2px solid rgb(31, 150, 199);
}

td {
    padding: 15px;
    font-weight: bold;
    color: #ffffff;
    border: 2px solid rgba(150, 31, 224, 0.5);
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
    background-color: rgba(150, 31, 224, 0.3);
}

.note {
    font-style: italic;
    font-weight: bold;
    color: #ffeb3b;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 4px solid rgb(150, 31, 224);
    border-radius: 5px;
}

/* Flowchart Styles */
.flowchart {
    margin: 30px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
}

.flow-box {
    background-color: rgb(31, 150, 199);
    border: 3px solid rgb(150, 31, 224);
    padding: 15px 20px;
    margin: 15px auto;
    border-radius: 10px;
    max-width: 400px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flow-box.start,
.flow-box.end {
    background-color: rgb(150, 31, 224);
    border-radius: 50px;
    font-size: 1.2em;
}

.flow-box.decision {
    background-color: rgb(200, 100, 220);
    border-radius: 50%;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.flow-arrow {
    font-size: 2em;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.flow-path {
    flex: 1;
    padding: 0 20px;
}

.flow-arrow-side {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(150, 31, 224);
    margin: 10px 0;
}

.flow-arrow-return {
    font-size: 1em;
    font-weight: bold;
    color: #ffeb3b;
    margin: 10px 0;
    font-style: italic;
}

/* FAQ Styles */
.faq-item {
    margin: 20px 0;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: rgb(150, 31, 224);
    color: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgb(180, 50, 255);
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: rgba(31, 150, 199, 0.8);
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    font-weight: bold;
    color: #ffffff;
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 4px solid rgb(150, 31, 224);
    font-weight: bold;
}

footer p {
    font-weight: bold;
    color: #ffffff;
    margin: 10px 0;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .container {
        border: 2px solid black;
        background-color: white;
    }

    .navigation,
    .print-btn {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        border: 1px solid black;
        background-color: white;
    }

    .content-section h2,
    .content-section h3,
    .content-section p,
    .content-section li,
    th,
    td {
        color: black;
    }

    table {
        border: 2px solid black;
    }

    th {
        background-color: #e0e0e0;
        color: black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation {
        position: static;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    .content-section h3 {
        font-size: 1.3em;
    }

    table {
        font-size: 0.9em;
    }

    .flow-split {
        flex-direction: column;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Highlight */
::selection {
    background-color: rgb(150, 31, 224);
    color: #ffffff;
}