/* =====================================================
   ENTERPRISE DOCS THEME
===================================================== */

/* ---------- ROOT VARIABLES ---------- */

:root {
    --docs-bg: #ffffff;
    --docs-text: #212529;
    --docs-muted: #6c757d;
    --docs-border: #e9ecef;
    --docs-sidebar-bg: #f8f9fa;
    --docs-link: #0d6efd;
    --docs-code-bg: #f4f6f8;
}

/* DARK MODE */
[data-theme="dark"] {
    --docs-bg: #1e1f25;
    --docs-text: #e4e6eb;
    --docs-muted: #9aa0a6;
    --docs-border: #2c2f36;
    --docs-sidebar-bg: #25272d;
    --docs-link: #4da3ff;
    --docs-code-bg: #2b2e36;
}

/* ---------- LAYOUT ---------- */

.docs-content {
    background: var(--docs-bg);
    color: var(--docs-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- HEADINGS ---------- */

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
    margin-top: 2rem;
    font-weight: 600;
}

.docs-content h1 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--docs-border);
    padding-bottom: 0.5rem;
}

/* ---------- LINKS ---------- */

.docs-content a {
    color: var(--docs-link);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* ---------- CODE ---------- */

.docs-content pre {
    background: var(--docs-code-bg);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.docs-content code {
    background: var(--docs-code-bg);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ---------- TABLES ---------- */

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.docs-content th,
.docs-content td {
    border: 1px solid var(--docs-border);
    padding: 10px;
}

.docs-content th {
    background: var(--docs-sidebar-bg);
}

/* ---------- SIDEBAR ---------- */

.docs-sidebar {
    background: var(--docs-sidebar-bg);
    min-height: 100%;
    transition: all 0.3s ease;
}

.docs-sidebar.collapsed {
    width: 60px !important;
    overflow: hidden;
}

.docs-sidebar .list-group-item {
    border: none;
    border-radius: 6px;
    margin-bottom: 4px;
}

.docs-sidebar .list-group-item.active {
    background-color: var(--docs-link);
    border-color: var(--docs-link);
}

/* ---------- DARK MODE TRANSITION ---------- */

body {
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
    .docs-sidebar {
        position: fixed;
        z-index: 1050;
        left: -260px;
        width: 250px;
        height: 100%;
        overflow-y: auto;
    }

    .docs-sidebar.open {
        left: 0;
    }

    .docs-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }

    .docs-overlay.active {
        display: block;
    }
}

/* ---------- PRINT FRIENDLY ---------- */

@media print {
    .docs-sidebar,
    .btn,
    .card-footer {
        display: none !important;
    }

    .docs-content {
        font-size: 12pt;
        color: #000;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}