/* ========================================
   Modern Dashboard CSS - LAAM LMS
   ======================================== */

:root {
    /* Primary Colors - Premium Violet/Blue Gradient */
    --primary-color: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    --accent-gradient: linear-gradient(135deg, #f472b6 0%, #db2777 100%);

    /* Secondary Colors */
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Premium Neutrals */
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    /* Modern Dimensions */
    --sidebar-width: 280px;
    --header-height: 70px;
    --sidebar-collapsed-width: 80px;

    /* Sidebar Theme */
    --sidebar-bg: #1e293b;
    --sidebar-bg-gradient: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --sidebar-text: #e2e8f0;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(99, 102, 241, 0.15);

    /* Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.3);

    /* Modern Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Blur Effects */
    --backdrop-blur: blur(12px);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

* {
    transition: all var(--transition-fast);
}

/* ========================================
   Modern Sidebar
   ======================================== */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg-gradient);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all var(--transition-base);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Body */
.sidebar-body {
    padding: 1rem;
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.profile-card .avatar {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.profile-card h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-card .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* Sidebar Header (Legacy - for backward compatibility) */
.sidebar-header {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    margin: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.sidebar-header .user-info {
    text-align: center;
    padding: 0.5rem;
}

.sidebar-header .avatar,
.profile-card .avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.sidebar-header .avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.sidebar-header .avatar i {
    font-size: 2.5rem;
    color: white;
}

.sidebar-header h6 {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-header small {
    color: var(--sidebar-text);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav {
    padding: 0;
}

.sidebar-nav .nav-item {
    margin: 0.25rem 0.75rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: white;
    transform: translateX(-3px);
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.sidebar-nav .nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-nav .nav-link i {
    font-size: 1.25rem;
    margin-left: 0.75rem;
    min-width: 24px;
    text-align: center;
}

/* Nav Divider */
.nav-divider {
    margin: 1rem 1.5rem;
}

.nav-divider hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Nav Section Title */
/* Sidebar Section Titles */
.sidebar-section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.sidebar-section-title:first-of-type {
    margin-top: 0;
}

.nav-section-title {
    padding: 1.5rem 1.5rem 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.nav-section-title:first-child {
    margin-top: 0;
    padding-top: 1rem;
}

/* Badge Role */
.badge-role {
    background: var(--primary-gradient);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Nav Link with Icon and Text */
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.sidebar-nav .nav-link i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
    margin-left: 0;
}

.sidebar-nav .nav-link span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Main Content Area
   ======================================== */

.main-with-sidebar {
    margin-right: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: margin var(--transition-base);
}

.main-full {
    padding: 2rem;
    min-height: 100vh;
}

/* ========================================
   Modern Navbar
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

/* Fix Navbar overlap with Sidebar */
@media (min-width: 992px) {
    body.has-sidebar .navbar {
        margin-right: var(--sidebar-width) !important;
        width: auto !important;
    }

    /* Ensure sidebar is always above other content except maybe modals */
    .sidebar {
        z-index: 1040 !important;
        /* Bootstrap fixed-top is 1030 */
    }
}


.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ========================================
   Modern Cards
   ======================================== */

.card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Gradient Backgrounds for Stat Cards */
.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.stat-card-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* ========================================
   Modern Buttons
   ======================================== */

.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   Modern Tables
   ======================================== */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   Modern Badges
   ======================================== */

.badge {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

/* ========================================
   Modern Forms
   ======================================== */

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ========================================
   Modern Modals
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f0f0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1.5rem;
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-with-sidebar {
        margin-right: 0;
    }

    .sidebar-toggle {
        display: flex;
    }
}

@media (min-width: 993px) {
    .sidebar-toggle {
        display: none;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* ========================================
   Quick Actions
   ======================================== */

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-align: center;
}

.quick-action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all var(--transition-fast);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-card span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   Utilities
   ======================================== */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: var(--radius-lg);
}

.opacity-75 {
    opacity: 0.75;
}

/* ========================================
   Navbar Enhancements
   ======================================== */

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.navbar .avatar-sm {
    transition: transform var(--transition-fast);
}

.navbar .avatar-sm:hover {
    transform: scale(1.1);
}

/* ========================================
   Footer Enhancements
   ======================================== */

.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-3px);
}

/* ========================================
   Profile Page Enhancements
   ======================================== */

.avatar-lg {
    position: relative;
    display: inline-block;
}

.avatar-lg button {
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.avatar-lg button:hover {
    transform: scale(1.1);
}

/* ========================================
   Settings Page Enhancements
   ======================================== */

.nav-pills .nav-link {
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   Dashboard Container
   ======================================== */

.dashboard-container {
    padding: 0;
}

/* ========================================
   Stat Card Footer
   ======================================== */

.stat-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-footer a {
    text-decoration: none;
    transition: all var(--transition-fast);
}

.stat-footer a:hover {
    opacity: 0.8;
    transform: translateX(-3px);
}

/* ========================================
   Quick Action Cards
   ======================================== */

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-align: center;
    height: 100%;
}

.quick-action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all var(--transition-fast);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   Loading States
   ======================================== */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   Badge Enhancements
   ======================================== */

.badge {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

/* ========================================
   Responsive Enhancements
   ======================================== */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .quick-action-card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   Loading Overlay
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ========================================
   Toast Notifications
   ======================================== */

.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Additional Stat Card Variants
   ======================================== */

.stat-card-secondary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.stat-card-purple {
    background: linear-gradient(135deg, #A855F7 0%, #9333EA 100%);
}

.stat-card-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
}

.stat-card-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.stat-card-pink {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* ========================================
   Enhanced Form Controls
   ======================================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

/* ========================================
   Enhanced Cards
   ======================================== */

.card {
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    font-weight: 600;
}

/* ========================================
   Enhanced Buttons
   ======================================== */

.btn {
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn:active {
    transform: scale(0.98);
}

.btn-group .btn {
    border-radius: var(--radius-md);
}

/* ========================================
   Enhanced Tables
   ======================================== */

.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* ========================================
   Enhanced Dropdowns
   ======================================== */

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}