/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
}

/* Print Header */
.print-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #ffffff;
}

.print-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.print-header h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.print-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Print Button */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Cover Page */
.cover-page {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.project-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 20px;
}

.project-info p {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

/* Navigation Panel */
.navigation-panel {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navigation-panel h3 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.nav-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    font-size: 20px;
    font-weight: bold;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 12px;
}

.section p {
    font-size: 17px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: justify;
}

.section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.section li {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.6;
}

.section strong {
    color: #2c3e50;
    font-weight: bold;
}

/* Tables */
.contents-table table,
.table-container table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contents-table th,
.table-container th,
.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ffffff;
}

.contents-table td,
.table-container td,
.data-table td {
    padding: 12px 15px;
    border: 2px solid #ddd;
    font-size: 15px;
    font-weight: bold;
    color: #1a1a1a;
}

.contents-table tr:nth-child(even),
.table-container tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.contents-table tr:hover,
.table-container tr:hover,
.data-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Q&A Section */
.qa-section {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qa-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.qa-btn:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: scale(1.02);
}

.qa-content {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #ff6b6b;
}

.qa-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-content p {
    margin: 10px 0;
    color: #1a1a1a;
    font-weight: bold;
}

/* Mind Map Container */
.mindmap-container {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mindmap-container svg {
    width: 100%;
    height: auto;
}

.mindmap-container text {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Flowchart Container */
.flowchart-container {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.flowchart-container svg {
    width: 100%;
    height: auto;
}

.flowchart-container text {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    border-radius: 10px;
}

.footer p {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .print-btn,
    .navigation-panel {
        display: none;
    }

    .container {
        box-shadow: none;
        background: white;
    }

    .section {
        page-break-inside: avoid;
        background: white;
        box-shadow: none;
    }

    .section h2 {
        color: black;
        border-bottom: 3px solid black;
    }

    .qa-btn {
        display: none;
    }

    .qa-content {
        display: block !important;
        background: white;
        border-left: 3px solid black;
    }

    .qa-content p {
        color: black;
    }

    table {
        page-break-inside: avoid;
    }

    .cover-page,
    .print-header {
        background: white;
        color: black;
    }

    .main-title,
    .print-header h1,
    .print-header h2,
    .print-header h3 {
        color: black;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .main-title {
        font-size: 24px;
    }

    .section h2 {
        font-size: 24px;
    }

    .section h3 {
        font-size: 20px;
    }

    .section p,
    .section li {
        font-size: 14px;
    }

    .nav-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .print-btn {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #667eea;
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}