:root {
    --primary-color: #FFD700;
    --secondary-color: #FF6B35;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --accent-color: #4CAF50;
    --docs-border: #e8eaed;
    --docs-muted: #5f6368;
    --docs-sidebar-w: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #fff;
    color: var(--dark-color);
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.navbar-brand img {
    height: 35px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1051;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background: #f8f9fa;
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

.sidebar-menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.sidebar-btn-outline {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--dark-color);
    color: white;
}

.portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.portal-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark-color);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.portal-tab:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    color: #ccc;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #999;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ========== Docs layout ========== */
.docs-shell {
    padding-top: 72px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 100% -20%, rgba(255, 215, 0, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 107, 53, 0.08), transparent),
        #fafbfc;
}

.docs-hero {
    border-bottom: 1px solid var(--docs-border);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.docs-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1.5rem;
}

.docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--docs-muted);
    margin-bottom: 0.75rem;
}

.docs-breadcrumb a {
    color: var(--docs-muted);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--secondary-color);
}

.docs-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.docs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--docs-muted);
}

.docs-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.docs-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: var(--docs-sidebar-w) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.docs-toc-wrap {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.docs-toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--docs-muted);
    margin-bottom: 0.85rem;
}

.docs-toc {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    border-left: 2px solid var(--docs-border);
}

.docs-toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.9rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--docs-muted);
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.35;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc a:hover {
    color: var(--dark-color);
}

.docs-toc a.active {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    font-weight: 600;
}

.docs-related {
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    padding: 1rem;
}

.docs-related h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--docs-muted);
    margin-bottom: 0.65rem;
}

.docs-related a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f4;
}

.docs-related a:last-child {
    border-bottom: none;
}

.docs-related a:hover {
    color: var(--secondary-color);
}

.docs-related a.active {
    color: var(--secondary-color);
}

.docs-mobile-toc {
    display: none;
    margin-bottom: 1.25rem;
}

.docs-mobile-toc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.docs-mobile-toc summary::-webkit-details-marker {
    display: none;
}

.docs-mobile-toc .docs-toc {
    margin-top: 0.75rem;
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.docs-content {
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 8px 30px rgba(26, 26, 26, 0.04);
}

.docs-content .docs-section {
    scroll-margin-top: 96px;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.docs-content .docs-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.docs-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.docs-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.35rem 0 0.65rem;
    color: #333;
}

.docs-content p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.9rem;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 1rem 1.25rem;
    color: #444;
}

.docs-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.docs-content a {
    color: var(--secondary-color);
    font-weight: 500;
}

.docs-callout {
    background: linear-gradient(135deg, #fff8e8, #fff3e0);
    border: 1px solid #ffe0b2;
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    font-size: 0.925rem;
    line-height: 1.65;
    color: #444;
}

.docs-contact {
    margin-top: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}

.docs-contact h3 {
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.docs-contact p,
.docs-contact a {
    color: #eee;
}

.docs-contact a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .docs-toc-wrap {
        display: none;
    }

    .docs-mobile-toc {
        display: block;
    }
}

@media (max-width: 576px) {
    .docs-hero-inner {
        padding: 1.5rem 1rem 1.25rem;
    }

    .docs-layout {
        padding: 1rem 1rem 3rem;
    }

    .docs-content {
        border-radius: 12px;
        padding: 1.15rem;
    }
}
