/* PlateTrace Admin — Custom styles */

:root {
    --sidebar-width: 240px;
    --topbar-height: 56px;
}

body {
    background-color: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

/* Sidebar */
#sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
}

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

#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* Cards */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    border-bottom-width: 1px;
}

.table td {
    font-size: 0.875rem;
}

/* Topbar */
.navbar.border-bottom {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Page content */
#page-content-wrapper {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Monospace */
.font-monospace {
    font-size: 0.85em;
}

/* Alert for secrets */
.alert .font-monospace {
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.6;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    min-width: 220px;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-sm {
    border-radius: 6px;
}

/* Login page */
body.bg-light .card {
    border-radius: 16px;
}

/* Stat cards */
.card-body .rounded-3 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Scrollbar */
#sidebar::-webkit-scrollbar {
    width: 4px;
}

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

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        display: none !important;
    }
}
