/* assets/css/style.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styles */
#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    margin-left: -250px;
    transition: margin 0.25s ease-out;
    background-color: #1e1e2f !important;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem;
    font-size: 1.25rem;
    color: #fff;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

#page-content-wrapper {
    min-width: 100vw;
    background-color: #f4f6f9;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Active Nav Item */
.active-nav {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 4px solid #6366f1;
    font-weight: 600;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* Utilities & Components */
.content-container {
    max-width: 1400px;
}

.card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.bg-indigo-light { background-color: #e0e7ff; color: #4338ca; }
.bg-emerald-light { background-color: #d1fae5; color: #047857; }
.bg-rose-light { background-color: #ffe4e6; color: #be123c; }
.bg-amber-light { background-color: #fef3c7; color: #b45309; }

.text-indigo { color: #6366f1 !important; }
.text-emerald { color: #10b981 !important; }

/* Progress bar animation */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Table styles */
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}
.table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
}

/* =====================
   Premium Stat Cards
   ===================== */
.stat-card {
    background: #fff;
    border-radius: 1rem !important;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.025);
    transform: translate(20px, -20px);
}

.stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 1.7rem;
    color: #1e293b;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =====================
   Sidebar Enhancements
   ===================== */
#sidebar-wrapper {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
}

#sidebar-wrapper .sidebar-heading {
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.list-group-item {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.active-nav {
    background: linear-gradient(90deg, rgba(99,102,241,0.2), transparent) !important;
    border-left: 3px solid #6366f1 !important;
}

/* =====================
   Custom Scrollbar
   ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =====================
   Table Improvements
   ===================== */
.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* =====================
   Hover animation
   ===================== */
.hover-up {
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s ease;
}
.hover-up:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
}
