body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Glassmorphism utility */
.glass-pane {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

/* Sidebar styling */
.sidebar {
    width: 250px;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: 100%;
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #cbd5e1;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s;
    border-radius: 0.5rem;
    margin: 0.2rem 1rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.5);
}

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

/* Main content */
.main-content {
    padding: 2rem;
    min-height: 100vh;
}

/* Desktop layout (lg and up) */
@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, .1);
    }
    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Mobile layout (md and down) */
@media (max-width: 991.98px) {
    .main-content {
        padding: 1rem;
        width: 100%;
    }
    
    .offcanvas-lg.glass-pane {
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-custom {
        padding: 0.75rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* Auth Page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.auth-card {
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border-radius: 1.5rem;
}

.auth-logo {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

/* Form controls */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    color: #f8fafc;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: #64748b;
}

/* Buttons */
.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Dashboard Cards */
.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.stat-icon.primary { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.stat-icon.success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.stat-icon.warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.stat-icon.danger { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.stat-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.stat-details p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
.navbar-custom {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    position: relative;
    z-index: 1020;
}

/* Tables */
.table {
    color: #f8fafc;
}

.table tbody tr {
    border-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}
