:root {
    --primary-color: #2e86de;
    --secondary-color: #1d6fb8;
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #2e86de;
    --secondary-color: #1d6fb8;
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg: #2c2c2c;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: var(--transition);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

.tab:hover:not(.active) {
    background-color: var(--secondary-color);
    color: white;
}

.content {
    margin: 30px 0;
}

.topic-container {
    display: none;
}

.topic-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.subtopic {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.subtopic h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.subtopic h3 i {
    margin-right: 10px;
}

.subtopic h4 {
    color: var(--secondary-color);
    margin: 15px 0 10px 0;
}

.subtopic p {
    margin-bottom: 15px;
}

.subtopic ul, .subtopic ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.subtopic li {
    margin-bottom: 5px;
}

.subtopic img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.progress-container {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 5px;
    margin: 30px 0;
    position: relative;
    height: 10px;
}

.progress-bar {
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.code-block {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
}

.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid var(--text-color);
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.info-icon {
    display: inline-block;
    margin-left: 5px;
    color: var(--primary-color);
    cursor: pointer;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-color);
    color: var(--background-color);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-diagram {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.visual-diagram {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.process-step {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
    position: relative;
}

.process-step:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary-color);
    transform: translateX(-50%);
}

.process-step:last-child:after {
    display: none;
}

.rights-box {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.checklist {
    list-style-type: none;
    margin: 15px 0;
}

.checklist li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.checklist li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-color);
    font-size: 0.9rem;
}

.example-box {
    background-color: rgba(32, 116, 184, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.example-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}