/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(240, 248, 255);
    color: rgb(0, 0, 0);
    line-height: 1.8;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 30px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(25, 25, 112), rgb(70, 130, 180));
    color: rgb(255, 255, 255);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(70, 130, 180);
}

header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Print Button */
#printBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: rgb(100, 149, 237);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#printBtn:hover {
    background-color: rgb(70, 130, 180);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation */
#navigation {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

#navigation h2 {
    font-size: 18px;
    font-weight: bold;
    color: rgb(25, 25, 112);
    margin-bottom: 15px;
    text-align: center;
}

#navigation ul {
    list-style: none;
}

#navigation li {
    margin: 8px 0;
}

#navigation button {
    width: 100%;
    padding: 10px;
    background-color: rgb(100, 149, 237);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(70, 130, 180);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    transition: all 0.3s ease;
}

#navigation button:hover {
    background-color: rgb(70, 130, 180);
    transform: translateX(5px);
}

/* Disclaimer */
.disclaimer {
    background-color: rgb(255, 250, 205);
    border: 3px solid rgb(255, 215, 0);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    font-weight: bold;
    color: rgb(139, 69, 19);
    font-size: 15px;
    text-align: center;
}

/* Content Sections */
.content-section {
    margin: 40px 0;
    padding: 25px;
    background-color: rgb(248, 248, 255);
    border: 3px solid rgb(100, 149, 237);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Headings */
h2 {
    color: rgb(25, 25, 112);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 4px solid rgb(70, 130, 180);
}

h3 {
    color: rgb(70, 130, 180);
    font-size: 22px;
    font-weight: bold;
    margin: 25px 0 15px 0;
}

h4 {
    color: rgb(100, 149, 237);
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 12px 0;
}

/* Paragraphs */
p {
    margin: 15px 0;
    font-weight: bold;
    color: rgb(0, 0, 0);
    text-align: justify;
    font-size: 15px;
}

/* Lists */
ul, ol {
    margin: 15px 0 15px 40px;
    font-weight: bold;
}

li {
    margin: 10px 0;
    font-weight: bold;
    color: rgb(0, 0, 0);
    font-size: 15px;
}

strong {
    color: rgb(25, 25, 112);
    font-weight: bold;
}

/* Subsections */
.subsection {
    margin: 20px 0;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(135, 206, 250);
    border-left: 6px solid rgb(70, 130, 180);
    border-radius: 8px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-box {
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(100, 149, 237);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgb(70, 130, 180);
}

.feature-box h4 {
    color: rgb(25, 25, 112);
    margin-bottom: 12px;
    font-weight: bold;
}

.feature-box p {
    font-weight: bold;
    color: rgb(0, 0, 0);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit-box {
    padding: 20px;
    background: linear-gradient(135deg, rgb(240, 248, 255), rgb(255, 255, 255));
    border: 3px solid rgb(100, 149, 237);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.benefit-box h4 {
    color: rgb(25, 25, 112);
    margin-bottom: 12px;
    font-weight: bold;
}

.benefit-box p {
    font-weight: bold;
    color: rgb(0, 0, 0);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border: 3px solid rgb(70, 130, 180);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgb(255, 255, 255);
    font-weight: bold;
}

thead {
    background: linear-gradient(135deg, rgb(25, 25, 112), rgb(70, 130, 180));
    color: rgb(255, 255, 255);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgb(70, 130, 180);
}

td {
    padding: 15px;
    border: 2px solid rgb(135, 206, 250);
    font-weight: bold;
    color: rgb(0, 0, 0);
    font-size: 14px;
}

tbody tr:nth-child(even) {
    background-color: rgb(240, 248, 255);
}

tbody tr:hover {
    background-color: rgb(224, 240, 255);
}

/* Flowcharts */
.flowchart {
    margin: 30px 0;
    padding: 30px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flow-step {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-box {
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    border: 3px solid rgb(70, 130, 180);
}

.flow-box.start {
    background-color: rgb(144, 238, 144);
    color: rgb(0, 100, 0);
    font-size: 16px;
}

.flow-box.end {
    background-color: rgb(255, 182, 193);
    color: rgb(139, 0, 0);
    font-size: 16px;
}

.flow-box.process {
    background-color: rgb(135, 206, 250);
    color: rgb(0, 0, 0);
    font-size: 15px;
}

.flow-box.decision {
    background-color: rgb(255, 218, 185);
    color: rgb(139, 69, 19);
    font-size: 15px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-box.parallel {
    background-color: rgb(221, 160, 221);
    color: rgb(75, 0, 130);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.parallel-item {
    padding: 10px;
    background-color: rgb(230, 190, 230);
    border-radius: 5px;
    border: 2px solid rgb(147, 112, 219);
}

.flow-arrow {
    font-size: 30px;
    color: rgb(70, 130, 180);
    font-weight: bold;
    margin: 10px 0;
}

.flow-split {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-label {
    background-color: rgb(255, 255, 0);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    color: rgb(0, 0, 0);
    border: 2px solid rgb(255, 215, 0);
    margin: 10px 0;
}

/* Mind Map */
.mindmap-container {
    margin: 30px 0;
    padding: 30px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

#mindmap {
    width: 100%;
    height: auto;
    min-height: 1000px;
}

#mindmap text {
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* Back to Top Button */
.back-to-top {
    text-align: center;
    margin: 40px 0 20px 0;
}

.back-to-top button {
    padding: 15px 30px;
    background-color: rgb(100, 149, 237);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(70, 130, 180);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top button:hover {
    background-color: rgb(70, 130, 180);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgb(25, 25, 112), rgb(70, 130, 180));
    color: rgb(255, 255, 255);
    border-radius: 10px;
    margin-top: 40px;
    border: 3px solid rgb(70, 130, 180);
    font-weight: bold;
}

footer p {
    margin: 8px 0;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

/* Print Styles */
@media print {
    body {
        background-color: rgb(255, 255, 255);
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 10px;
        border: none;
        box-shadow: none;
    }
    
    #printBtn,
    #navigation,
    .back-to-top {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    h2 {
        page-break-after: avoid;
        break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .flowchart,
    .mindmap-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    header,
    footer {
        background: rgb(240, 248, 255) !important;
        color: rgb(0, 0, 0) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .flow-box,
    .feature-box,
    .benefit-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    #navigation {
        position: static;
        width: 100%;
        margin: 20px 0;
    }
    
    #printBtn {
        position: static;
        display: block;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header h2 {
        font-size: 18px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    .feature-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-split {
        flex-direction: column;
        gap: 20px;
    }
    
    .flow-box {
        min-width: 200px;
        font-size: 14px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgb(100, 149, 237);
    color: rgb(255, 255, 255);
}

::-moz-selection {
    background-color: rgb(100, 149, 237);
    color: rgb(255, 255, 255);
}