/* Admin light theme — overrides the dark defaults in style.css */

body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Navbar */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
.navbar-brand { color: #0f172a !important; }
.nav-link     { color: #475569 !important; }
.nav-link:hover { color: #0f172a !important; }

/* Cards */
.card, .main-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
}
.main-card:hover {
    box-shadow: 0 6px 24px rgba(108,99,255,0.12) !important;
}

/* Stat cards */
.stat-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}
.stat-value { color: #0f172a !important; }
.stat-label { color: #475569 !important; }

/* Table */
.admin-table thead th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom-color: #cbd5e1 !important;
}
.admin-table tbody td {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
    background: transparent !important;
}
.admin-table tbody tr:hover td { background: #f8fafc !important; }
.admin-table .empty-row td { border-bottom-color: #e2e8f0 !important; }
.expired-row td { opacity: 0.5 !important; }

/* Badges & code */
.badge-expired {
    background: rgba(220,38,38,0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(220,38,38,0.3) !important;
}
code {
    background: #e2e8f0 !important;
    color: #4f46e5 !important;
}
.token-link { color: #4f46e5 !important; }
.token-link:hover { color: #3730a3 !important; }
.text-muted { color: #475569 !important; }

/* Action buttons */
.btn-delete { color: #94a3b8 !important; border-color: transparent !important; background: transparent !important; }
.btn-delete:hover { color: #dc2626 !important; background: rgba(220,38,38,0.07) !important; border-color: rgba(220,38,38,0.3) !important; }

.btn-expiry-edit { color: #94a3b8 !important; background: transparent !important; }
.btn-expiry-edit:hover { color: #6c63ff !important; background: rgba(108,99,255,0.08) !important; }

/* Expiry picker pills */
.expiry-option {
    border: 1.5px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
}
.expiry-option:hover {
    border-color: #6c63ff !important;
    background: #ffffff !important;
    color: #6c63ff !important;
}
.expiry-option.active {
    border-color: #6c63ff !important;
    background: #6c63ff !important;
    color: #ffffff !important;
}

/* Expiry dropdown */
.dropdown-menu.expiry-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    color: #0f172a !important;
}
.expiry-dropdown-label { color: #475569 !important; }

/* Default expiry card */
.card h6 { color: #0f172a !important; }
.card .text-muted { color: #475569 !important; }

/* Form controls */
.form-control, .input-group-text {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.form-control:focus {
    background: #ffffff !important;
    border-color: #6c63ff !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15) !important;
}
.form-control::placeholder { color: #94a3b8 !important; }
.input-group-text { color: #64748b !important; }
.toggle-pw, .toggle-pw-dl {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

/* Admin login icon */
.admin-login-icon {
    background: rgba(108,99,255,0.1) !important;
    color: #6c63ff !important;
}

/* Alerts */
.alert-success {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}
.alert-danger {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}
.alert-dismissible .btn-close { filter: none !important; }

/* Footer */
footer { border-top-color: #e2e8f0 !important; }
footer .text-muted { color: #64748b !important; }
