/* Sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #1a1d21;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1rem;
}

.sidebar-nav .nav-link {
    color: #8b949e;
    padding: 0.6rem 1.2rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

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

.sidebar-nav .nav-link.active {
    color: #58a6ff;
    border-left-color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.08);
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

/* Page content */
.page-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

/* Stat cards */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Status badges */
.badge.bg-orange {
    background-color: #e67e22 !important;
    color: #fff;
}

/* Font monospace for IDs */
.font-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
}

/* Auth page */
.auth-body {
    background: linear-gradient(135deg, #1a1d21 0%, #0d1117 100%);
}

.auth-card {
    max-width: 420px;
    width: 100%;
}

/* Table hover colors */
.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Card transitions */
.card {
    transition: box-shadow 0.2s ease;
}

/* Progress bar styling */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Pagination dark theme */
.pagination .page-link {
    background-color: #2b3035;
    border-color: #3d444d;
    color: #8b949e;
}

.pagination .page-link:hover {
    background-color: #3d444d;
    color: #e6edf3;
}

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

/* Audit expand arrow animation */
.audit-row[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.audit-row .bi-chevron-down {
    transition: transform 0.2s ease;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .page-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3d444d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Pre code blocks in audit */
pre code {
    color: #e6edf3;
    white-space: pre-wrap;
    word-break: break-word;
}
