:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #444;
    --accent-blue: #569cd6;
    --accent-purple: #c586c0;
    --accent-green: #4ec9b0;
    --link-color: #4ec9b0;
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #3da88f 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop:hover {
    background: linear-gradient(135deg, #5eddb8 0%, var(--accent-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(78, 201, 176, 0.4);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop i {
    pointer-events: none;
}

.cookie-banner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #2a2a2a 100%);
    border-top: 2px solid var(--accent-green);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cookie-banner-text h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.cookie-banner-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #4ec9b0 0%, #3da88f 100%);
    color: #fff;
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #3da88f 0%, #2e8570 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 201, 176, 0.3);
}

.btn-cookie-essential {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-cookie-essential:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-cookie-customize {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.btn-cookie-customize:hover {
    background: var(--accent-blue);
    color: #fff;
}

.btn-cookie-save {
    background: linear-gradient(135deg, #569cd6 0%, #4080bf 100%);
    color: #fff;
}

.btn-cookie-save:hover {
    background: linear-gradient(135deg, #4080bf 0%, #3060a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 156, 214, 0.3);
}

.btn-cookie-back {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-cookie-back:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-banner-detailed {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.cookie-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-option-label strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cookie-option-label small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-options {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    padding-top: 60px;
}

.navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.docs-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.docs-sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.docs-sidebar h5 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.docs-sidebar .nav {
    flex-direction: column;
}

.docs-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s;
}

.docs-sidebar .nav-link:hover {
    color: var(--text-primary);
    border-left-color: var(--accent-green);
}

.docs-sidebar .nav-link.active {
    color: var(--accent-green);
    border-left-color: var(--accent-green);
    font-weight: 500;
}

.docs-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 900px;
}

.docs-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-green);
    position: relative;
}

.docs-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-purple);
    position: relative;
}

.docs-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.docs-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.anchor-link {
    position: absolute;
    left: -1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.8em;
    padding: 0.25rem;
}

.docs-content h1:hover .anchor-link,
.docs-content h2:hover .anchor-link,
.docs-content h3:hover .anchor-link,
.docs-content h4:hover .anchor-link {
    opacity: 1;
}

.anchor-link:hover {
    color: var(--accent-green);
}

.docs-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content code {
    background-color: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.docs-content pre {
    background-color: var(--bg-tertiary) !important;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-green);
}

.docs-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.docs-content blockquote {
    border-left: 4px solid var(--accent-blue);
    background-color: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    border-radius: 4px;
}

.docs-content blockquote p {
    margin-bottom: 0;
}

.docs-content blockquote strong {
    color: var(--text-primary);
}

.docs-content a {
    color: var(--link-color);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.docs-content th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.docs-content td {
    color: var(--text-secondary);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.docs-content tr:hover {
    background-color: var(--bg-tertiary);
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.docs-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(78, 201, 176, 0.3);
}

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    overflow: auto;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-lightbox img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.image-lightbox img:hover {
    transform: none;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: rotate(90deg);
}

.image-lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

@media (max-width: 768px) {
    .image-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .image-lightbox-content {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.docs-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.docs-content em {
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 992px) {
    .docs-sidebar {
        display: none;
    }
    
    .docs-content {
        padding: 2rem;
    }
}

