/**
 * Fleet Management System - Main Stylesheet
 * Contains custom CSS styles and design elements
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Primary Colors */
    --color-blue-600: #2563eb;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    --color-blue-700: #1d4ed8;

    /* Secondary Colors */
    --color-purple-600: #9333ea;
    --color-purple-400: #c084fc;
    --color-purple-700: #7e22ce;

    /* Gray Colors */
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-white: #ffffff;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;

    /* Dark Mode Colors */
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-bg-tertiary: #334155;
    --dark-text-primary: #f1f5f9;
    --dark-text-secondary: #cbd5e1;
    --dark-border: #334155;

    /* Status Colors */
    --color-green-600: #16a34a;
    --color-green-400: #4ade80;
    --color-green-500: #22c55e;
    --color-green-700: #15803d;
    --color-red-600: #dc2626;
    --color-red-400: #f87171;
    --color-red-500: #ef4444;
    --color-red-700: #b91c1c;
    --color-yellow-600: #ca8a04;
    --color-yellow-400: #facc15;
    --color-yellow-500: #eab308;
    --color-yellow-700: #a16207;
    --color-orange-600: #ea580c;
    --color-orange-400: #fb923c;
    --color-orange-500: #f97316;

    /* Background Colors */
    --bg-glass: rgba(30, 41, 59, 0.7);
    --bg-dark: rgba(15, 23, 42, 0.7);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-blue-active: rgba(37, 99, 235, 0.2);
    --bg-green-active: rgba(34, 197, 94, 0.2);
    --bg-red-active: rgba(239, 68, 68, 0.2);
    --bg-yellow-active: rgba(234, 179, 8, 0.1);
    --bg-purple-active: rgba(147, 51, 234, 0.2);

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, var(--color-blue-500) 0%, var(--color-blue-700) 100%);
    --gradient-blue-purple: linear-gradient(to right, var(--color-blue-600), var(--color-purple-600));
    --gradient-green: linear-gradient(90deg, var(--color-green-500), var(--color-green-600));
    --gradient-yellow: linear-gradient(90deg, var(--color-yellow-500), var(--color-yellow-600));
    --gradient-red: linear-gradient(90deg, var(--color-red-500), var(--color-red-600));
    --gradient-purple: linear-gradient(90deg, var(--color-purple-600), var(--color-purple-700));
    --gradient-orange: linear-gradient(90deg, var(--color-orange-600), var(--color-orange-700));
    --gradient-bg: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Body */
.dark body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
}

/* Dark Mode Text Colors */
.dark .text-gray-900 { color: #f1f5f9; }
.dark .text-gray-800 { color: #e2e8f0; }
.dark .text-gray-700 { color: #cbd5e1; }
.dark .text-gray-600 { color: #94a3b8; }
.dark .text-gray-500 { color: #64748b; }
.dark .text-slate-900 { color: #f1f5f9; }
.dark .text-slate-800 { color: #e2e8f0; }
.dark .text-slate-700 { color: #cbd5e1; }
.dark .text-slate-600 { color: #94a3b8; }
.dark .text-slate-500 { color: #64748b; }
.dark .text-slate-400 { color: #94a3b8; }
.dark .text-white { color: #ffffff; }
.dark .text-blue-600 { color: #60a5fa; }
.dark .text-blue-500 { color: #3b82f6; }
.dark .text-blue-400 { color: #60a5fa; }
.dark .text-indigo-600 { color: #818cf8; }
.dark .text-indigo-500 { color: #6366f1; }
.dark .text-rose-600 { color: #fb7185; }
.dark .text-rose-500 { color: #f43f5e; }

/* Modern Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-accent-1 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.05) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* Custom Animations - Modern */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Glass Card Effect - Modern Light */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Glass Card */
.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Progress Bar Base */
.progress-bar-container {
    width: 100%;
    background-color: rgba(55, 65, 81, 1);
    border-radius: 0.5rem;
    height: 8px;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: var(--progress-width, 0%);
}

/* Progress Bar Colors */
.progress-bar-green {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-bar-yellow {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.progress-bar-red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Alert Styles - Modern Light */
.alert {
    padding: 16px 20px;
    border-radius: 0.75rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #ca8a04;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Dark Mode Alerts */
.dark .alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.dark .alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.dark .alert-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.dark .alert-info {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Button Styles - Modern Light */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Form Input Styles - Modern Light */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 1);
}

.form-input::placeholder {
    color: rgba(30, 41, 59, 0.5);
}

/* Dark Mode Form Input */
.dark .form-input {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.dark .form-input:focus {
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

.dark .form-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: rgba(156, 163, 175, 1);
    font-weight: 500;
    border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Vehicles Table - Light Mode */
.vehicles-table {
    background: #eff6ff;
}

.table-header {
    background: #dbeafe;
    border-bottom: 1px solid #bfdbfe;
}

.table-th {
    color: #1e3a8a;
    font-weight: 600;
}

.table-row {
    border-bottom: 1px solid #bfdbfe;
}

.table-row:hover {
    background: #dbeafe;
}

/* Vehicles Table - Dark Mode */
.dark .vehicles-table {
    background: #1e293b;
}

.dark .table-header {
    background: #334155;
    border-bottom: 1px solid #475569;
}

.dark .table-th {
    color: #e2e8f0;
}

.dark .table-row {
    border-bottom: 1px solid #334155;
}

.dark .table-row:hover {
    background: #334155;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

/* Notification and Profile Dropdowns - Fully Opaque */
#notification-dropdown,
#profile-dropdown {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark Mode Dropdowns */
.dark #notification-dropdown,
.dark #profile-dropdown {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(209, 213, 219, 1);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pending Item Backgrounds */
.pending-item-yellow {
    background: rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
}

.pending-item-blue {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
}

/* Status Badges - Dark Mode Lively Effects */
.dark .status-badge {
    transition: all 0.3s ease;
}

.dark .status-badge[class*="bg-green"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.35)) !important;
    color: #86efac !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 222, 128, 0.5) !important;
}

.dark .status-badge[class*="bg-yellow"] {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(202, 138, 4, 0.35)) !important;
    color: #fde047 !important;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(250, 204, 21, 0.5) !important;
}

.dark .status-badge[class*="bg-red"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.35)) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(248, 113, 113, 0.5) !important;
}

.dark .status-badge[class*="bg-blue"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.35)) !important;
    color: #93c5fd !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(96, 165, 250, 0.5) !important;
}

.dark .status-badge[class*="bg-orange"] {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.35)) !important;
    color: #fdba74 !important;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(251, 146, 60, 0.5) !important;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.8);
}

/* Nav Item Styles - Modern Light */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #1e293b;
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Dark Mode Nav Items */
.dark .nav-item {
    color: #cbd5e1;
}

.dark .nav-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #f1f5f9;
}

.dark .nav-item.active {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Gradient Backgrounds */
.gradient-blue {
    background: var(--gradient-blue);
}

.gradient-green {
    background: var(--gradient-green);
}

.gradient-yellow {
    background: var(--gradient-yellow);
}

.gradient-red {
    background: var(--gradient-red);
}

.gradient-purple {
    background: var(--gradient-purple);
}

.gradient-orange {
    background: var(--gradient-orange);
}

/* Icon Gradient Backgrounds */
.icon-gradient-blue {
    background: linear-gradient(90deg, var(--color-blue-600), var(--color-blue-700));
}

.icon-gradient-green {
    background: linear-gradient(90deg, var(--color-green-600), var(--color-green-700));
}

.icon-gradient-purple {
    background: linear-gradient(90deg, var(--color-purple-600), var(--color-purple-700));
}

.icon-gradient-orange {
    background: linear-gradient(90deg, var(--color-orange-600), var(--color-orange-700));
}

.icon-gradient-red {
    background: linear-gradient(90deg, var(--color-red-600), var(--color-red-700));
}

.icon-gradient-yellow {
    background: linear-gradient(90deg, var(--color-yellow-600), var(--color-yellow-700));
}

/* Status Backgrounds with opacity */
.bg-status-green {
    background: rgba(34, 197, 94, 0.2);
}

.bg-status-blue {
    background: rgba(59, 130, 246, 0.2);
}

.bg-status-red {
    background: rgba(239, 68, 68, 0.2);
}

.bg-status-yellow {
    background: rgba(234, 179, 8, 0.2);
}

.bg-status-purple {
    background: rgba(147, 51, 234, 0.2);
}

/* Gray Backgrounds */
.bg-gray-800 {
    background: rgba(31, 41, 55, 1);
}

.bg-gray-800-40 {
    background: rgba(31, 41, 55, 0.4);
}

.bg-gray-800-50 {
    background: rgba(31, 41, 55, 0.5);
}

.bg-gray-800-60 {
    background: rgba(31, 41, 55, 0.6);
}

.bg-gray-900-50 {
    background: rgba(15, 23, 42, 0.5);
}

.bg-blue-500-10 {
    background: rgba(59, 130, 246, 0.1);
}

.bg-blue-600-20 {
    background: rgba(37, 99, 235, 0.2);
}

.bg-gray-500-20 {
    background: rgba(107, 114, 128, 0.2);
}

.bg-purple-500-20 {
    background: rgba(168, 85, 247, 0.2);
}

.bg-purple-500-30 {
    background: rgba(168, 85, 247, 0.3);
}

.bg-orange-500-30 {
    background: rgba(249, 115, 22, 0.3);
}

.bg-red-500-30 {
    background: rgba(239, 68, 68, 0.3);
}

/* Border Left Variants */
.border-l-green {
    border-left: 4px solid var(--color-green-500);
}

.border-l-blue {
    border-left: 4px solid var(--color-blue-500);
}

.border-l-purple {
    border-left: 4px solid var(--color-purple-500);
}

.border-l-red {
    border-left: 4px solid var(--color-red-500);
}

.border-l-yellow {
    border-left: 4px solid var(--color-yellow-500);
}

/* Dot Indicators */
.dot-green {
    background: var(--color-green-500);
}

.dot-blue {
    background: var(--color-blue-500);
}

.dot-yellow {
    background: var(--color-yellow-500);
}

/* Transition */
.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover Effects */
.hover-text-blue-300:hover {
    color: #93c5fd;
}

.hover-text-white:hover {
    color: var(--color-white);
}

.hover-text-red-300:hover {
    color: #fca5a5;
}

.hover-text-green-300:hover {
    color: #86efac;
}

.hover-bg-white-5:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hover-bg-gray-800-40:hover {
    background: rgba(31, 41, 55, 0.4);
}

.hover-bg-gray-800-50:hover {
    background: rgba(31, 41, 55, 0.5);
}

.hover-bg-gray-700-50:hover {
    background: rgba(55, 65, 81, 0.5);
}

.hover-bg-blue-100:hover {
    background: #dbeafe;
}

.hover-underline:hover {
    text-decoration: underline;
}

/* Logo/Avatar Gradient - Modern */
.logo-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.avatar-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Notification Badge */
.notification-badge {
    background: #dc2626;
    color: white;
    border: 2px solid white;
}

/* Login/Register Logo */
.auth-logo {
    background: var(--gradient-blue-purple);
}

/* Info Box */
.info-box {
    background: var(--bg-blue-active);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-box-text {
    color: var(--color-blue-400);
}

.info-box-subtext {
    color: var(--color-blue-400);
}

/* Tab Button */
.tab-button {
    padding: 8px 16px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(75, 85, 99, 0.5);
    color: var(--color-gray-300);
}

.tab-button.active {
    background: var(--bg-blue-active);
    border-color: var(--color-blue-500);
    color: var(--color-blue-500);
}

.tab-button:hover:not(.active) {
    background: var(--bg-hover);
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.language-selector a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #94a3b8;
    background: var(--bg-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.language-selector a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.language-selector a.active {
    background: var(--bg-blue-active);
    color: var(--color-blue-400);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Layout Utilities */
/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Width/Height */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-80 { max-width: 20rem; }
.max-w-48 { max-width: 12rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-10px { font-size: 10px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Text Colors */
.text-white { color: var(--color-white); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-500 { color: var(--color-gray-500); }
.text-blue-400 { color: var(--color-blue-400); }
.text-red-400 { color: var(--color-red-400); }
.text-red-300 { color: #fca5a5; }
.hover\:text-white:hover { color: var(--color-white); }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:underline:hover { text-decoration: underline; }

/* Background Colors */
.hover\:bg-white\/5:hover { background: var(--bg-hover); }
.hover\:bg-white\/10:hover { background: rgba(255, 255, 255, 0.1); }

/* Border */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-gray-700 { border-color: rgba(55, 65, 81, 1); }
.border-gray-800 { border-color: rgba(31, 41, 55, 1); }

/* Last Child Border */
.last-border-0:last-child {
    border: none;
}

/* Shadow */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.right-0 { right: 0; }
.mt-2 { margin-top: 0.5rem; }

/* Overflow */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.max-h-96 { max-height: 24rem; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Tooltip Styles */
.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    transition: all 0.2s ease;
}

.help-tooltip:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

.help-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    max-width: 200px;
    min-width: 150px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.help-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.label-with-help {
    display: flex;
    align-items: center;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.375rem 0.75rem;
    }
    
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:items-center {
        align-items: center;
    }
    
    .lg\:justify-between {
        justify-content: space-between;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
