@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* GLOBAL STYLES */
body {
    font-family: 'Outfit', sans-serif;
    /* Premium Light Gradient Background */
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    background-attachment: fixed;
    color: #334155;
    min-height: 100vh;
}

/* Scrollbar Customization for Premium Look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* GLASSMORPHISM UTILITIES */

/* The Glass Sidebar */
.glass-sidebar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    color: #1e293b !important;
}

/* The Glass Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.glass-navbar .navbar-brand, .glass-navbar .nav-link {
    color: #1e293b !important;
}

.glass-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(50%);
}

/* The Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.glass-card .card-header {
    background: rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #1e293b !important;
    font-weight: 600;
}

/* Sidebar Nav Links */
.glass-sidebar .nav-link {
    color: #64748b !important;
    border-radius: 12px;
    margin: 4px 10px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.glass-sidebar .nav-link:hover, .glass-sidebar .nav-link.active {
    color: #2563eb !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.glass-sidebar .nav-link.text-danger:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.glass-sidebar .text-white {
    color: #1e293b !important;
}
.glass-sidebar .btn-close-white {
    filter: invert(1);
}

.profile-img-sidebar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    background-color: white;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar { color: #1e293b; }
footer { background: rgba(255,255,255,0.5); backdrop-filter: blur(10px); padding: 15px; text-align: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.6); }
.wrapper { display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-top: 20px; } }
@media (max-width: 991.98px) { .sidebar { min-height: auto; } .offcanvas-lg { background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); } }

/* TABLE STYLING */
.table {
    --bs-table-bg: transparent;
    color: #334155;
}
.table-bordered {
    border-color: rgba(255,255,255,0.6);
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: rgba(255, 255, 255, 0.3);
}

/* LOGIN PAGE SPECIAL BACKGROUND */
.login-body {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    background-attachment: fixed;
}
.login-glass-card {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
    border-radius: 24px !important;
}

/* FORM ELEMENTS */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #1e293b;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}

/* BUTTONS */
.btn {
    border-radius: 10px;
    font-weight: 500;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* MODALS */
.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-header, .modal-footer {
    border-color: rgba(0,0,0,0.05);
}
