html, body {
    height: 100%;
}

body {
    background-color: #0f172a;
    color: #e5e7eb;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    color: #7dd3fc;
}

/* Navbar */
.navbar {
    background-color: #020617;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand span {
    color: #38bdf8;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #020617;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    padding-top: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(56, 189, 248, 0.15);
}

.sidebar a {
    color: #9ca3af;
    display: block;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar a.active,
.sidebar a:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: #e5e7eb;
}

.submenu a {
    padding-left: 40px;
    font-size: 0.95rem;
}

.submenu-toggle .chevron {
    transition: transform 0.3s;
}

/* Content Wrapper */
.content-wrapper {
    margin-left: 0;
    padding: 20px;
    flex: 1 0 auto;
}

@media (min-width: 992px) {
    .content-wrapper {
        margin-left: 220px;
        padding: 30px 24px;
    }
}

/* Stats Bar */
.stats-bar {
    background-color: #111827;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    color: #38bdf8;
    text-align: center;
}

.stat-item i {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-weight: 600;
    font-size: 1.05rem;
    color: #e5e7eb;
}

.stat-progress {
    width: 70px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
    background-color: #020617;
}

/* Content Boxes */
.content-box {
    background-color: #111827;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
    margin-bottom: 24px;
}

/* Tables */
table.table {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
}

table.table th,
table.table td {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

table.table th {
    color: #38bdf8 !important;
    font-weight: 600;
    text-align: left;
}

table.table td.text-end {
    text-align: right;
}

table.table tr:last-child td {
    border-bottom: none;
}

/* Accordion (FAQ / Docs style) */
.accordion-button {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: #111827 !important;
    color: #9ca3af !important;
}

/* Footer */
footer {
    background-color: #020617;
    text-align: center;
    padding: 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.card {
    background-color: #020617;
    color: #fff;
    border: 1px solid rgba(56, 189, 248, 0.15);
}