:root {
    --midnight-blue: #191970;
    --midnight-light: #2a2a8a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(25, 25, 112, 0.2);
}

body {
    background: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glass morphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(25, 25, 112, 0.3);
}

.glass-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(25, 25, 112, 0.1);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Midnight blue accent */
.bg-midnight {
    background: var(--midnight-blue) !important;
}

.text-midnight {
    color: var(--midnight-blue) !important;
}

.btn-midnight {
    background: var(--midnight-blue);
    border-color: var(--midnight-blue);
    color: var(--white);
}

.btn-midnight:hover {
    background: var(--midnight-light);
    border-color: var(--midnight-light);
    color: var(--white);
}

.btn-outline-midnight {
    color: var(--midnight-blue);
    border-color: var(--midnight-blue);
}

.btn-outline-midnight:hover {
    background: var(--midnight-blue);
    color: var(--white);
}

/* Dashboard stat cards */
.stat-card {
    border-left: 4px solid var(--midnight-blue);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(25, 25, 112, 0.08);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

/* Table styling */
.table-midnight thead {
    background: var(--midnight-blue);
    color: var(--white);
}

.table-midnight tbody tr:hover {
    background: rgba(25, 25, 112, 0.04);
}

/* Badge customization */
.badge-available {
    background: #d4edda;
    color: #155724;
}

.badge-borrowed {
    background: #fff3cd;
    color: #856404;
}

.badge-maintenance {
    background: #f8d7da;
    color: #721c24;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-declined {
    background: #f8d7da;
    color: #721c24;
}

.badge-returned {
    background: #d4edda;
    color: #155724;
}

.badge-claimed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(25, 25, 112, 0.1);
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, #2a2a8a 100%);
    padding: 3rem 0;
    color: var(--white);
    border-radius: 0 0 24px 24px;
}

.hero-section h1 {
    font-weight: 700;
}

.hero-section .lead {
    opacity: 0.9;
}

/* Tracking card */
.tracking-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Checkbox card style */
.item-check-card {
    border: 2px solid rgba(25, 25, 112, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.item-check-card:hover {
    border-color: var(--midnight-blue);
    box-shadow: 0 4px 16px rgba(25, 25, 112, 0.1);
}

.item-check-card .form-check-input:checked ~ .form-check-label {
    color: var(--midnight-blue);
    font-weight: 600;
}

.item-check-card:has(.form-check-input:checked) {
    border-color: var(--midnight-blue);
    background: rgba(25, 25, 112, 0.04);
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        border-radius: 0 0 16px 16px;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}
