/* ============================================
   Design System & CSS Variables
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global Styles & Typography
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark);
}

/* ============================================
   Navbar Enhancements
   ============================================ */
.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(37, 99, 235, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    transition: all var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-fast);
}

.navbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Role Badge */
.role-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Notification Bell */
#notifBell {
    border-radius: var(--radius);
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

#notifBell:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#notifBell i {
    font-size: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top right, white 49%, transparent 51%),
                linear-gradient(to top left, white 49%, transparent 51%);
    background-size: 50% 100%;
    background-position: left, right;
    background-repeat: no-repeat;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.hero .lead {
    font-size: 1.35rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.hero .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hero .btn:hover::after {
    transform: translateX(100%);
}

.hero .btn-light {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: var(--shadow-lg);
}

.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-3px);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.4);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.5);
}

.feature-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   How It Works Section
   ============================================ */
.cta-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    padding: 80px 0;
    position: relative;
}

.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px -8px rgba(37, 99, 235, 0.4);
}

.step-card h5 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Connection line between steps */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

.step-connector:last-child::after {
    display: none;
}

/* ============================================
   CTA Section
   ============================================ */
.final-cta {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta .btn {
    border-radius: var(--radius-lg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.final-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--dark) !important;
    padding: 50px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

footer h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

footer p {
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   Pulse Status Dots
   ============================================ */
.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-online { 
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}

.pulse-on-session { 
    background: var(--warning);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseYellow 2s infinite;
}

.pulse-offline { 
    background: var(--danger);
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseYellow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Split-view layout */
.split-view {
    height: calc(100vh - 80px);
}
.split-left {
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}
.split-right {
    overflow-y: auto;
}

/* Care tag pills */
.tag-matched {
    background-color: #198754 !important;
}

/* Star rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

/* ============================================
   Mobile Responsiveness (Sprint 7)
   ============================================ */

/* Mobile: Split-view becomes single column */
@media (max-width: 768px) {
    .split-view {
        height: auto;
        flex-direction: column !important;
    }

    .split-left,
    .split-right {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        height: auto;
        max-height: 50vh;
    }

    .split-right {
        border-bottom: none;
    }
}

/* Mobile: Tables with horizontal scroll */
.table-responsive-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-mobile table {
    min-width: 600px;
}

/* Mobile: Card-based table view */
@media (max-width: 576px) {
    .table-card-view thead {
        display: none;
    }

    .table-card-view tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        padding: 0.75rem;
    }

    .table-card-view td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .table-card-view td:last-child {
        border-bottom: none;
    }

    .table-card-view td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
    }

    .table-card-view .actions-cell::before {
        display: none;
    }

    .table-card-view .actions-cell {
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

/* Mobile: Form improvements */
@media (max-width: 576px) {
    .form-label {
        font-size: 0.9rem;
    }

    .form-control, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
    }
}

/* Mobile: Navigation improvements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 1rem 1rem 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Mobile: Dashboard cards */
@media (max-width: 576px) {
    .dashboard-card {
        margin-bottom: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Mobile: Notification bell */
@media (max-width: 576px) {
    #notifDropdown {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}

/* Mobile: Modal improvements */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Mobile: Step form */
@media (max-width: 576px) {
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Mobile: Staff cards */
@media (max-width: 576px) {
    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .staff-card img {
        margin-bottom: 0.75rem;
    }

    .staff-card .staff-info {
        width: 100%;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .form-check-input {
        width: 1.2em;
        height: 1.2em;
    }
}

/* ============================================
   Landing Page Mobile Styles
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        display: block;
        margin: 0.5rem auto;
        max-width: 250px;
    }

    .hero .btn.me-3 {
        margin-right: auto !important;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-connector::after {
        display: none;
    }

    .step-card {
        padding: 1.5rem;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }

    .final-cta .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 100px;
    }

    .hero::after {
        height: 50px;
    }

    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .cta-section {
        padding: 60px 0;
    }

    .final-cta {
        padding: 60px 0;
    }

    footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   Admin Dashboard Styles
   ============================================ */

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card.managers::before { background: linear-gradient(90deg, var(--primary), #3b82f6); }
.stat-card.requests::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.staff::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.users::before { background: linear-gradient(90deg, var(--accent), #22d3ee); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card.managers .stat-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: var(--primary); }
.stat-card.requests .stat-icon { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: var(--warning); }
.stat-card.staff .stat-icon { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: var(--success); }
.stat-card.users .stat-icon { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: var(--accent); }

.stat-content {
    flex-grow: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-badge.today {
    background: #fef3c7;
    color: #92400e;
}

.stat-badge.online {
    background: #d1fae5;
    color: #065f46;
}

.stat-trend {
    margin-top: auto;
    padding-top: 0.75rem;
}

.stat-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition-fast);
}

.stat-link:hover {
    gap: 0.5rem;
    color: var(--primary-dark);
}

/* Dashboard Cards */
.dashboard-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-card .card-header {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.dashboard-card .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.dashboard-card .card-header i {
    color: var(--primary);
}

/* Status Bars */
.status-bar-item {
    padding: 0.5rem 0;
}

.status-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.status-label i {
    color: var(--gray-400);
}

.status-count {
    font-weight: 600;
    color: var(--dark);
}

/* Revenue Items */
.revenue-item .revenue-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

.quick-stats {
    padding: 0.5rem 0;
}

.quick-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.quick-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Rank Badges */
.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%);
    color: white;
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Staff Rating */
.staff-rating {
    display: flex;
    align-items: center;
}

.staff-rating i {
    font-size: 0.75rem;
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

/* List Group Improvements */
.list-group-flush .list-group-item {
    padding: 1rem 1.5rem;
    border-color: var(--gray-100);
}

.list-group-flush .list-group-item:hover {
    background: var(--gray-50);
}

/* Table Improvements */
.table code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--primary);
}

.badge-pill {
    border-radius: var(--radius-full);
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
}
