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

:root {
    /* --- Modern Glass Dark Theme --- */
    --bg-body: #0f172a;
    --bg-gradient: radial-gradient(circle at 10% 20%, rgb(17, 24, 39) 0%, rgb(13, 13, 15) 90.2%);
    --bg-glass: rgba(30, 41, 59, 0.4);
    /* Glass Effect Base */
    --bg-glass-heavy: rgba(30, 41, 59, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);

    --primary: #6366f1;
    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-hover: #4f46e5;

    --secondary: #ec4899;
    /* Pink 500 */
    --success: #10b981;
    --danger: #ef4444;

    --text-white: #f8fafc;
    --text-muted: #94a3b8;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg-body);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    font-size: 0.9rem;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* === GLASSMORPHISM UTILS === */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

/* === SIDEBAR === */
.sidebar {
    width: 260px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    left: 0;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.3s ease;
    /* Smooth transition */
}

/* Minimized State */
.sidebar.minimized {
    width: 80px;
    padding: 25px 10px;
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 35px;
    padding-left: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    /* Prevent wrap */
    overflow: hidden;
    /* Hide overflow */
    transition: all 0.3s ease;
}

.sidebar.minimized .sidebar-brand {
    font-size: 0;
    /* Hide text */
    margin-bottom: 20px;
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.sidebar.minimized .sidebar-brand .rounded-circle {
    margin: 0 !important;
}

.sidebar.minimized .sidebar-brand>span {
    display: none;
}


.nav-link {
    color: var(--text-muted) !important;
    padding: 10px 15px;
    margin-bottom: 6px;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.minimized .nav-link {
    justify-content: center;
    padding: 10px 0;
}

.sidebar.minimized .nav-link span,
.sidebar.minimized small {
    display: none;
    /* Hide text labels */
}

.sidebar.minimized .nav-link i {
    font-size: 1.2rem;
    width: auto;
    margin: 0;
}

/* User Profile Minimized */
.sidebar.minimized .user-profile-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    justify-content: center;
}

.sidebar.minimized .user-profile-info {
    display: none;
}


/* === MAIN CONTENT === */
.main-content {
    margin-left: 260px;
    padding: 30px 40px;
    transition: margin-left 0.3s ease;
}

/* Main Content Adjustment */
body.minimized-mode .main-content {
    margin-left: 80px;
}

/* Logout Button Minimized */
.sidebar.minimized .btn-logout-text {
    display: none;
}

.sidebar.minimized .btn-logout {
    padding: 8px 0;
    display: flex;
    justify-content: center;
}

.sidebar.minimized .btn-logout i {
    margin: 0 !important;
    font-size: 1.1rem;
}

/* === CARDS === */
.card-dark {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* === FORMS === */
.form-control,
.form-select,
textarea {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-glass) !important;
    color: white !important;
    border-radius: var(--radius-md);
    padding: 10px 15px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}

label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

/* === TABLES === */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-white);
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
}

.table thead th {
    background-color: transparent;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glass);
    padding: 15px;
}

.table tbody tr {
    background-color: rgba(30, 41, 59, 0.3);
    transition: transform 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.5);
    transform: scale(1.005);
}

.table td {
    padding: 15px;
    border: none;
    vertical-align: middle;
}

.table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* === BUTTONS === */
.btn {
    border-radius: var(--radius-md);
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* === MODALS === */
.modal-content {
    background-color: #1e293b;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.modal-header,
.modal-footer {
    border-color: var(--border-glass);
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

/* === LOGIN PAGE === */
.login-body {
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 400px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* === UTILS === */
.text-gradient {
    background: linear-gradient(to right, #818cf8, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fw-extra {
    font-weight: 800;
}

.bg-dark-soft {
    background: rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.5s ease-out;
}

/* === STAT CARDS === */
/* === STAT CARDS === */
.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

/* Icon Gradients */
.icon-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: white;
}

.icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
}

.icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}