:root {
    --doc-primary: #00B4A0;
    --doc-primary-hover: #009988;
    --doc-bg: #ffffff;
    --doc-sidebar-bg: #fbfbfb;
    --doc-text-main: #1f2937;
    --doc-text-muted: #6b7280;
    --doc-border: #e5e7eb;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--doc-text-main);
    background-color: var(--doc-bg);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

/* Navbar Global */
.doc-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--doc-bg);
    border-bottom: 1px solid var(--doc-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 2rem;
    z-index: 50;
}

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

.doc-brand:hover {
    color: var(--doc-primary);
}

.doc-search-wrapper {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.doc-search {
    width: 100%;
    background: #f3f4f6;
    border: 1px solid transparent;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.doc-search:focus {
    background: #fff;
    border-color: var(--doc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 160, 0.1);
}

/* Sidebar Navigasi Kiri */
.doc-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--doc-sidebar-bg);
    border-right: 1px solid var(--doc-border);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.doc-nav-group {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--doc-text-muted);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    padding-left: 0.75rem;
}

.doc-nav-group:first-child {
    margin-top: 0;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar-link {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--doc-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.doc-sidebar-link:hover {
    background: #f3f4f6;
    color: var(--doc-text-main);
}

.doc-sidebar-link.active {
    background: rgba(0, 180, 160, 0.1);
    color: var(--doc-primary);
    font-weight: 600;
}

/* Area Konten Utama */
.doc-main {
    margin-top: 60px;
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 900px;
}

/* Tipografi Konten (Mirip Docusaurus) */
.doc-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.doc-content h2, .doc-content h3 {
    scroll-margin-top: 80px; /* Offset for fixed navbar when scrolling */
}

.doc-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--doc-border);
    padding-bottom: 0.5rem;
}

.doc-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Right Sidebar (Table of Contents) */
.doc-toc-container {
    position: fixed;
    top: 60px;
    right: 0;
    width: 250px;
    height: calc(100vh - 60px);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid var(--doc-border);
    background: var(--doc-bg);
}

.doc-toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--doc-text-main);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.doc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-toc-link {
    display: block;
    font-size: 0.85rem;
    color: var(--doc-text-muted);
    text-decoration: none;
    padding: 0.25rem 0;
    margin-bottom: 0.25rem;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
}

.doc-toc-link:hover {
    color: var(--doc-primary);
}

.doc-toc-link.active {
    color: var(--doc-primary);
    border-left-color: var(--doc-primary);
    font-weight: 600;
}

.doc-toc-link.depth-3 {
    padding-left: 1.5rem;
}

.doc-content p {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1.25rem;
}

.doc-content a {
    color: var(--doc-primary);
    text-decoration: none;
    font-weight: 500;
}

.doc-content a:hover {
    text-decoration: underline;
}

.doc-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ec4899;
}

.doc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--doc-text-muted);
    margin-bottom: 2rem;
}

/* Responsif */
.doc-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--doc-text-main);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.doc-mobile-toggle:focus {
    outline: none;
}

@media (max-width: 991px) {
    .doc-mobile-toggle {
        display: block;
    }
    .doc-navbar-links {
        display: none !important;
    }
    .doc-sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        transition: transform 0.3s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.05);
    }
    .doc-sidebar.show {
        transform: translateX(0);
    }
    .doc-main {
        margin-left: 0;
        padding: 1.5rem 1rem;
        width: 100%;
    }
    .doc-toc-container {
        display: none;
    }
}

/* Search Modal */
.doc-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.doc-search-modal {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.2s;
}

.doc-search-overlay.active .doc-search-modal {
    transform: scale(1);
}

.doc-search-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--doc-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-search-input {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    outline: none;
    color: var(--doc-text-main);
}

.doc-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.doc-search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--doc-text-main);
    transition: all 0.2s;
}

.doc-search-item:hover, .doc-search-item.selected {
    background: #f3f4f6;
    color: var(--doc-primary);
}

.doc-search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--doc-text-muted);
}
