/* -------------------------------------------------- */
/* Typography                                          */
/* -------------------------------------------------- */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* -------------------------------------------------- */
/* Sidebar                                             */
/* -------------------------------------------------- */

.sidebar {
    width: 250px;
    background-color: #1a1d21;
    color: #adb5bd;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
    }
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.sidebar-brand:hover {
    color: #fff;
}

.sidebar-body {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #0d6efd;
}

.sidebar-nav .nav-link i {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
}

.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6c757d;
    font-size: 0.75rem;
}

/* -------------------------------------------------- */
/* Main content area                                   */
/* -------------------------------------------------- */

@media (min-width: 992px) {
    .main-content {
        margin-left: 250px;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* -------------------------------------------------- */
/* Topbar                                              */
/* -------------------------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar .breadcrumb {
    font-size: 0.875rem;
}

.topbar-user {
    white-space: nowrap;
    font-size: 0.875rem;
}

.topbar-user-link {
    color: var(--bs-body-color);
}

.topbar-user-link:hover {
    color: var(--bs-primary);
}

/* -------------------------------------------------- */
/* Content area                                        */
/* -------------------------------------------------- */

.content-area {
    flex: 1;
    padding: 1.5rem;
}

.content-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
}

/* -------------------------------------------------- */
/* Cards                                               */
/* -------------------------------------------------- */

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-border-color);
}

.card-header {
    background-color: var(--bs-tertiary-bg);
    font-weight: 500;
}

/* -------------------------------------------------- */
/* Tables                                              */
/* -------------------------------------------------- */

.table thead th {
    background-color: var(--bs-tertiary-bg);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

/* -------------------------------------------------- */
/* Dashboard cards                                     */
/* -------------------------------------------------- */

.dashboard-card {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-card .display-6 {
    font-weight: 600;
}

.dashboard-card i {
    font-size: 2rem;
    color: var(--bs-secondary-color);
}

/* -------------------------------------------------- */
/* Badges in detail views                              */
/* -------------------------------------------------- */

.detail-table th {
    width: 140px;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background-color: transparent;
}

/* -------------------------------------------------- */
/* Documentation content                               */
/* -------------------------------------------------- */

.doc-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.doc-content h2 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--bs-border-color); }
.doc-content h3 { font-size: 1.15rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.doc-content table { width: 100%; margin-bottom: 1rem; }
.doc-content table th,
.doc-content table td { padding: 0.5rem 0.75rem; border: 1px solid var(--bs-border-color); }
.doc-content table th { background-color: var(--bs-tertiary-bg); font-weight: 600; }
.doc-content code { font-size: 0.875em; color: var(--bs-code-color); }
.doc-content pre { background-color: var(--bs-tertiary-bg); padding: 1rem; border-radius: 0.375rem; overflow-x: auto; }
.doc-content pre code { color: inherit; }
