﻿:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --accent-hover: #1d4ed8;
    --sidebar-gradient: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --sidebar-width: 260px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    overflow-x: hidden;
    font-size: 0.9rem;
    color: #334155;
}

/* Sidebar Styles */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    margin-left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--sidebar-gradient);
    position: fixed;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(37, 99, 235, 0.1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 2rem 1.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar-wrapper .sidebar-heading img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
}

#sidebar-wrapper .sidebar-heading:hover img {
    transform: scale(1.05) rotate(5deg);
}

#sidebar-wrapper .list-group {
    width: 100%;
    padding: 1rem;
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
}

#sidebar-wrapper .list-group-item i {
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.2s;
    opacity: 0.9;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

#sidebar-wrapper .list-group-item:hover i {
    color: white;
    transform: translateX(3px);
}

#sidebar-wrapper .list-group-item.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .list-group-item.active i {
    color: var(--primary-color);
}

/* Page Content Styles */
#page-content-wrapper {
    width: 100%;
    margin-left: var(--sidebar-width);
    transition: margin 0.25s ease-out;
}

.top-navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
    display: none;
}

/* Card & UI Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    background-color: white;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.card-header {
    background: var(--accent-color);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-header i {
    margin-right: 8px;
    opacity: 0.9;
}

.card-body {
    padding: 1.5rem;
}

/* Hero Card */
.hero-card {
    background: var(--sidebar-gradient) !important;
    border-radius: 24px !important;
    position: relative;
    overflow: hidden;
    color: white;
    border: none !important;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 20px !important;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left-width: 0 !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.card-stat-primary::before {
    background: var(--accent-color);
}

.card-stat-success::before {
    background: var(--success-color);
}

.card-stat-warning::before {
    background: var(--warning-color);
}

.stat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.card-stat-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-top: 4px solid var(--accent-color);
}

.card-stat-primary .stat-card-icon {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.1);
}

.card-stat-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-top: 4px solid var(--success-color);
}

.card-stat-success .stat-card-icon {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.card-stat-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-top: 4px solid var(--warning-color);
}

.card-stat-warning .stat-card-icon {
    color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.stat-card:hover .stat-card-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.85rem;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background-color: #d97706;
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.875rem;
}

.table thead th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1.5rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.002);
}

.table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 6px;
}

/* Footer */
.footer {
    background-color: white !important;
    color: #475569 !important;
    padding: 1.5rem 0 !important;
    margin-top: 3rem !important;
    font-size: 0.85rem !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02) !important;
}

.footer h5 {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.footer i {
    color: var(--accent-color) !important;
    margin-right: 0.5rem !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.hover-up {
    transition: all 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.btn-white {
    background: white;
    border: 1px solid #e2e8f0;
}

.btn-white:hover {
    background: #f8fafc;
}

@media (max-width: 991.98px) {

    /* Fixed Top Navbar */
    .top-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        padding: 0 15px;
        z-index: 1050;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle-btn {
        width: 42px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .menu-toggle-btn i {
        font-size: 1.55rem;
        line-height: 1;
    }

    /* Adjust Font Sizes for Mobile */
    body {
        font-size: 0.8rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 90% !important;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-card .card-body {
        padding: 2rem !important;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-card p.lead {
        font-size: 0.9rem;
    }

    /* Push content down */
    #page-content-wrapper {
        margin-left: 0;
        padding-top: 80px;
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    /* Sidebar - Revert to Left Slide */
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width)) !important;
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        bottom: auto;
        transform: none;
        transition: margin 0.25s ease-out;
        border-radius: 0;
        z-index: 1060;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Show Sidebar when Toggled */
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0 !important;
        transform: none;
    }

    /* Overlay Backdrop */
    #wrapper.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1055;
        backdrop-filter: blur(2px);
    }

    /* Bottom Navigation Bar */
    .bottom-navbar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        padding: 0.5rem 0;
        height: 70px;
        border-top: 1px solid #f1f5f9;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 0.65rem;
        /* Reduced font size for 6 items */
        font-weight: 500;
        transition: all 0.2s;
        padding: 0.4rem 0.2rem;
        /* Reduced padding */
        border-radius: 8px;
        min-width: 50px;
        /* Reduced min-width */
        flex: 1;
        /* Distribute space evenly */
        text-align: center;
    }

    .bottom-nav-item i {
        font-size: 1.25rem;
        /* Slightly smaller icons */
        margin-bottom: 2px;
    }

    .bottom-nav-item.active {
        color: var(--accent-color);
        background-color: #eff6ff;
    }

    .bottom-nav-item:hover {
        color: var(--accent-color);
        background-color: #f8fafc;
    }
}