
/* =========================
   ADMIN DASHBOARD CUSTOM STYLES
========================= */
.admin-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.8rem;
    color: #0056d6;
    margin-bottom: 15px;
}

.stat-count {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
}

.stat-label {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

/* Sidebar Styles */
#wrapper {
    display: flex;
}

#sidebar-wrapper {
    background-color: #1a1d20 !important;
    min-height: 100vh;
    margin-left: -15rem;
    transition: all .3s ease;
    width: 15rem;
    position: fixed; /* Make sidebar fixed */
    z-index: 1000; /* Ensure it's above other content */
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background-color: #111416;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    color: #adb5bd; /* Lighter text for links */
    transition: background-color 0.2s ease, color 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #495057;
    color: #fff;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #007bff; /* Primary color for active item */
    color: #fff;
}

#page-content-wrapper {
    min-width: 100vw;
    margin-left: -15rem; /* Compensate for sidebar width */
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0; /* Push content when sidebar is open */
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
        margin-left: 0; /* Reset margin for larger screens */
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
    #wrapper.toggled #page-content-wrapper {
        margin-left: -15rem; /* Pull content back when sidebar is toggled off */
    }
}

/* Navbar in page-content-wrapper */
#page-content-wrapper .navbar {
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#page-content-wrapper .navbar .btn {
    margin-right: 1rem;
}

/* Ensure consistent background for admin body */
body.admin-body {
    background-color: #f4f6f9;
}

.admin-header-gradient {
    background: linear-gradient(135deg, #001f5b 0%, #0056d6 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

/* Quick Action Button Hover Effect */
.quick-action-btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.quick-action-btn:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
    color: #0056d6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}