/* Custom CSS for EzyRunners - Modern Beautiful UI */

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    z-index: 1040;
    overflow: visible;
}

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

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

/* Navbar Navigation Links */
.navbar .nav-link {
    color: var(--gray-800) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.navbar .nav-link:hover::after {
    width: 60%;
}

.navbar .nav-link.active {
    color: white !important;
    background: var(--gradient-primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.navbar .nav-link.active::after {
    width: 0;
}

/* Main content padding for pages with navbar */
.main-content {
    padding: 90px 20px 40px;
    min-height: calc(100vh - 76px);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .main-content {
        /* Add bottom padding for mobile navigation */
        padding-bottom: 80px;
    }
}

@media (min-width: 992px) {
    .main-content {
        /* Standard desktop layout */
        padding: 100px 30px 40px;
    }
}

/* Modern Card Styles */
.custom-card, .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

/* Gradient Cards */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    color: white;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
    color: white;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
    color: white;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
    color: white;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    background: white;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.bottom-nav .nav-item {
    padding: 0.5rem 0;
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.bottom-nav .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bottom-nav .nav-link:hover,
.bottom-nav .nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-nav .nav-link.active {
    font-weight: 600;
}

/* Side Navigation (Desktop) */
.side-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 250px;
    height: calc(100vh - 76px);
    background: white;
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    overflow-y: auto;
}

.side-nav .nav-menu {
    padding: 1rem 0;
}

.side-nav .nav-item {
    margin: 0.25rem 1rem;
}

.side-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.side-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
}

.side-nav .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.side-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Modern Notification System */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: dropdownSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure notification container has relative positioning */
#notificationContainer {
    position: relative !important;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.notification-header h6 {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-list {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    transform: translateX(4px);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-icon.bg-success {
    background: var(--gradient-success);
}

.notification-icon.bg-primary {
    background: var(--gradient-primary);
}

.notification-icon.bg-info {
    background: var(--gradient-info);
}

.notification-icon.bg-warning {
    background: var(--gradient-warning);
}

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

.notification-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.notification-desc {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.notification-footer {
    padding: 0.75rem 1rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

/* Notification Badge */
.badge {
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-Width Welcome Banner */
.welcome-banner-section {
    margin-top: -1rem; /* Offset container margin */
    margin-bottom: 2rem;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat bottom;
    background-size: 100% 100px;
    pointer-events: none;
}

.welcome-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Full-width content adjustments */
.container-fluid.full-width-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Enhanced card layout for full-width */
.full-width-card-layout .card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.full-width-card-layout .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments for welcome banner */
@media (max-width: 768px) {
    .welcome-banner {
        padding: 2rem 0;
    }
    
    .welcome-banner h2 {
        font-size: 2rem;
    }
    
    .welcome-banner p {
        font-size: 1rem;
    }
    
    .container-fluid.full-width-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .welcome-banner {
        padding: 1.5rem 0;
    }
    
    .welcome-banner h2 {
        font-size: 1.75rem;
    }
    
    .container-fluid.full-width-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Vehicle Type Section */
.vehicle-type-section {
    margin-bottom: 2rem;
}

.vehicle-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vehicle-category {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.vehicle-category.active {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.vehicle-category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vehicle-category-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.vehicle-category-count {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.vehicle-options {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.vehicle-options.show {
    display: block;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.vehicle-option {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.vehicle-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.vehicle-option-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.vehicle-option.selected .vehicle-option-icon {
    color: white;
}

.vehicle-option-name {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Animation for vehicle options */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: white;
}

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

.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(0, 123, 255, 0.15);
}

/* Login/KYC Page Styles */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: none;
    width: 450px !important;
    max-width: 450px !important;
}

.auth-logo {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Modern Button Styles */
.btn-custom {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-custom:hover::before {
    transform: translateX(0);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-custom:active {
    transform: translateY(0);
}

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

.btn-primary-custom:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-success-custom {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success-custom:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-danger-custom {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger-custom:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-warning-custom {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info-custom {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Modern Status Toggle */
.status-toggle {
    position: relative;
    display: inline-block;
}

.status-badge {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.status-badge::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;
}

.status-badge:hover::before {
    width: 300px;
    height: 300px;
}

.status-online {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.status-online:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.status-offline {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.status-offline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

/* Modern Job Cards */
.job-card {
    border: none;
    border-radius: 20px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.job-card:hover::before {
    width: 8px;
}

.job-amount {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.job-distance {
    color: var(--info-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.job-time {
    color: var(--warning-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Address Display */
.address-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.address-badge:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(2px);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.05);
}

/* Modern Stats Cards */
.stats-card {
    background: white;
    color: var(--gray-800);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card.card-primary::before {
    background: var(--gradient-primary);
}

.stats-card.card-success::before {
    background: var(--gradient-success);
}

.stats-card.card-warning::before {
    background: var(--gradient-warning);
}

.stats-card.card-info::before {
    background: var(--gradient-info);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.card-success .stats-number {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.card-warning .stats-number {
    background: var(--gradient-warning);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card.card-info .stats-number {
    background: var(--gradient-info);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Earnings Table */
.earnings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.earnings-table .table {
    margin-bottom: 0;
}

.earnings-table .table thead {
    background-color: var(--primary-color);
    color: white;
}

/* Profile Card */
.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: -10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Avatar Modal Styles */
.avatar-colors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 1rem;
}

.avatar-color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.avatar-color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-color-option.selected {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
    transform: scale(1.15);
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6c757d;
    font-size: 0.875rem;
}

.profile-detail {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.profile-detail:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.profile-value {
    color: var(--dark-color);
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding-top: 66px;
    }
    
    .auth-card {
        margin: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    /* Mobile notification dropdown adjustments */
    .notification-dropdown {
        width: 320px;
        right: -10px; /* Slight offset for mobile */
    }
}

@media (max-width: 480px) {
    /* Mobile notification dropdown full width */
    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -50px;
        left: auto;
        transform-origin: top right;
    }
    
    .notification-dropdown.show {
        transform: translateY(0) scale(1);
    }
    
    .job-card {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Form Controls */
.form-control-custom {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Toast Notifications */
.toast-custom {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-lg);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.border-left-primary {
    border-left: 4px solid var(--primary-color);
}

.border-left-success {
    border-left: 4px solid var(--success-color);
}

.border-left-warning {
    border-left: 4px solid var(--warning-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #007bff;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
}

.sidebar-logo i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-close-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 30px 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.sidebar-link:hover::before {
    left: 0;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    text-decoration: none;
    transform: translateX(8px);
}

.sidebar-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

.sidebar-icon {
    font-size: 1.4rem;
    margin-right: 15px;
    min-width: 28px;
    text-align: center;
}

.sidebar-text {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Sidebar Profile */
.sidebar-profile {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
}

.profile-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #28a745;
}

.status-text {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

.hamburger-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Main content dimming when sidebar open */
.main-content {
    transition: all 0.3s ease;
}

.sidebar.active ~ .main-content {
    filter: brightness(0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-header {
        padding: 15px 20px;
    }
    
    .sidebar-menu {
        padding: 20px 0;
    }
    
    .sidebar-link {
        padding: 15px 20px;
    }
    
    .sidebar-profile {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .sidebar-logo h4 {
        font-size: 1.1rem;
    }
    
    .sidebar-link {
        padding: 12px 15px;
    }
    
    .sidebar-icon {
        font-size: 1.2rem;
        margin-right: 12px;
    }
    
    .sidebar-text {
        font-size: 0.9rem;
    }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ======================================== */

/* Mobile First Base (<480px) */
@media (max-width: 480px) {
    /* Cards */
    .card {
        margin-bottom: 0.875rem;
        border-radius: 10px;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    /* Stat cards */
    .stat-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn-group-responsive {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-responsive .btn {
        width: 100%;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-row > [class*='col-'] {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem !important;
    }
    
    /* Main content */
    .main-content {
        padding: 0.75rem;
        padding-top: 65px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.875rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Dashboard grid */
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Hide elements on mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

/* Large Mobile (480px - 768px) */
@media (min-width: 480px) and (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Cards - 2 column on larger phones */
    .card-grid-auto {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Stat cards */
    .stat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .btn-group-responsive {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-group-responsive .btn {
        flex: 1;
        min-width: 45%;
    }
    
    /* Main content */
    .main-content {
        padding: 1rem;
        padding-top: 70px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Modals - Not full screen */
    .modal-dialog {
        margin: 1rem;
        max-width: 500px;
        height: auto;
    }
    
    .modal-content {
        border-radius: 12px;
        height: auto;
    }
    
    /* Forms */
    .form-inline-mobile {
        display: flex;
        gap: 0.5rem;
    }
    
    .form-inline-mobile .form-control {
        flex: 1;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Cards - 2-3 column layout */
    .card-grid-auto {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Stat cards - 3 or 4 columns */
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .stat-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Main content */
    .main-content {
        padding: 1.5rem;
        padding-top: 85px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Tables - Normal display */
    table {
        font-size: 0.9rem;
        min-width: auto;
    }
    
    /* Forms - Side by side */
    .form-row-tablet {
        display: flex;
        gap: 1rem;
    }
    
    .form-row-tablet > * {
        flex: 1;
    }
    
    /* Show on tablet */
    .show-on-tablet {
        display: block !important;
    }
    
    .hide-on-tablet {
        display: none !important;
    }
}

/* Small Laptop (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Cards - 3 column layout */
    .card-grid-auto {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Stat cards - 4 columns */
    .stat-grid,
    .stat-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Main content */
    .main-content {
        padding: 2rem;
        padding-top: 90px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.625rem;
    }
    
    /* Dashboard layout */
    .dashboard-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-layout.with-sidebar {
        grid-template-columns: 280px 1fr;
    }
}

/* Desktop (>1280px) */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    /* Cards - 4 column layout */
    .card-grid-auto {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Stat cards - 4-5 columns */
    .stat-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
    
    /* Main content */
    .main-content {
        padding: 2.5rem;
        padding-top: 100px;
        max-width: 1400px;
    }
    
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Dashboard layout */
    .dashboard-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
    
    .dashboard-layout.wide-sidebar {
        grid-template-columns: 320px 1fr;
    }
    
    /* Show on desktop */
    .show-on-desktop {
        display: block !important;
    }
    
    .hide-on-desktop {
        display: none !important;
    }
}

/* Extra Large Desktop (>1600px) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .main-content {
        max-width: 1600px;
    }
    
    /* Cards - 5 column layout */
    .card-grid-auto {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .stat-grid-5 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 480px) and (orientation: landscape) {
    .main-content {
        padding-top: 55px;
    }
    
    .navbar {
        padding: 0.4rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-height: 100vh;
    }
    
    .modal-body {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .no-print,
    .hide-print {
        display: none !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}