:root {
    --bg-dark: #090d16;
    --bg-card: #121824;
    --bg-card-hover: #192131;
    --border-color: #232d3f;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism containers */
.glass-card {
    background: rgba(18, 24, 36, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

/* Navbar */
.navbar-custom {
    background: rgba(12, 17, 27, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Cards */
.stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    font-size: 2rem;
    opacity: 0.25;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Tables */
.table-custom {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table-custom th {
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    border-color: var(--border-color);
    vertical-align: middle;
}

/* Status Badges */
.badge-active {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-inactive {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-code-present {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-weight: 600;
}

.badge-code-missing {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Code Snippet Textarea & Copy Box */
.code-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.code-box {
    background-color: #070a0f !important;
    color: #38bdf8 !important;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 1rem;
    resize: none;
}

.btn-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* Navigation Tabs */
.nav-tabs-custom .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-tabs-custom .nav-link.active {
    color: #60a5fa;
    background: transparent;
    border-bottom: 2px solid #60a5fa;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.54);
    color: white;
}

/* Form Control */
.form-control-dark, .form-select-dark {
    background-color: #0d131f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control-dark:focus, .form-select-dark:focus {
    background-color: #121824;
    border-color: #3b82f6;
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: rgba(12, 17, 27, 0.8);
}
