body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}

main.container-fluid {
    flex: 1;
}

.navbar {
    background-color: #16213e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    margin: 0 0.15rem;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(13, 110, 253, 0.2);
    color: #6ea8fe !important;
}

.card {
    background-color: #1e1e3a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card-footer {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table {
    color: #e0e0e0 !important;
}

.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #adb5bd !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.table td {
    vertical-align: middle;
    font-size: 0.88rem;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
}

.table-dark {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

thead.table-dark th {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #adb5bd !important;
}

.badge {
    font-size: 0.72em;
    padding: 0.4em 0.65em;
    font-weight: 600;
}

pre, code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

pre.bg-dark {
    background-color: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
    margin-top: auto;
    background-color: transparent !important;
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.form-control, .form-select {
    background-color: #2a2a4a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

.form-control:focus, .form-select:focus {
    background-color: #2a2a4a !important;
    border-color: #6ea8fe !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #adb5bd !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.modal-content {
    background-color: #1e1e3a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.detail-row > td {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 2px solid rgba(13, 110, 253, 0.15) !important;
}

.alert {
    border: none !important;
}

.page-link {
    background-color: #2a2a4a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #6ea8fe !important;
}

.page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.page-item.disabled .page-link {
    background-color: #1e1e3a !important;
    color: #6c757d !important;
}

.text-muted {
    color: #8a8a9a !important;
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.82rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
}
