/* ==============================================================================
   EASYRIDE DESIGN SYSTEM & ENTERPRISE UI STYLES
   ============================================================================== */

:root {
    --bg-base: #060911;
    --bg-surface: #0c1222;
    --bg-surface-elevated: rgba(18, 26, 47, 0.75);
    --bg-surface-card: rgba(23, 33, 59, 0.65);
    --bg-surface-hover: rgba(33, 47, 82, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(6, 182, 212, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --brand-cyan: #06b6d4;
    --brand-blue: #3b82f6;
    --brand-indigo: #6366f1;
    --brand-purple: #8b5cf6;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-rose: #f43f5e;

    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    --gradient-glow: radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.18), transparent 70%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
    --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.25);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

/* App Header & Navigation */
.app-header {
    background: rgba(6, 9, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: none;
    background: transparent;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--brand-emerald);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-emerald);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Container & Layout Grid */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

.grid-cols-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    border-color: var(--border-medium);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-searching { background: rgba(245, 158, 11, 0.15); color: var(--brand-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-assigned { background: rgba(59, 130, 246, 0.15); color: var(--brand-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-in-progress { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-completed { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.2); }
.badge-hold { background: rgba(244, 63, 94, 0.15); color: var(--brand-rose); border: 1px solid rgba(244, 63, 94, 0.3); }

/* Buttons */
.btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover { box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5); }

.btn-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}
.btn-rose:hover { box-shadow: 0 6px 22px rgba(244, 63, 94, 0.5); }

/* Form Controls */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(8, 13, 25, 0.7);
    border: 1px solid var(--border-medium);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    background: rgba(12, 19, 36, 0.9);
}

/* Vehicle Selector Cards */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
}

.vehicle-card {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.vehicle-card:hover {
    border-color: var(--border-glow);
    background: rgba(28, 39, 68, 0.7);
}

.vehicle-card.selected {
    border-color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.vehicle-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.vehicle-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.vehicle-price {
    color: var(--brand-cyan);
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

/* Live Ride Stream Cards */
.ride-stream-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: var(--transition-base);
    border-left: 4px solid var(--brand-cyan);
}

.ride-stream-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.countdown-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.5rem;
}

.countdown-fill {
    height: 100%;
    background: var(--brand-amber);
    width: 100%;
    animation: countdown 15s linear forwards;
}

@keyframes countdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-cols-12 { grid-template-columns: 1fr; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .app-header { padding: 1rem; flex-direction: column; gap: 1rem; }
    .nav-links { overflow-x: auto; max-width: 100%; }
}
