/* assets/css/style.css */
:root {
    --primary-color: #E8AFC1;
    --primary-hover: #D98FA6;
    --primary-light: #FAF5F7;
    --accent-color: #E8AFC1;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #F8E9ED;
    --text-color: #2E2E2E;
    --text-muted: #6B6B6B;
    --card-bg: #FFFFFF;
    --border-color: #EDE7E3;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(232, 175, 193, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Header & Navbar ─────────────────────────────── */
.main-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); background: var(--primary-light); }

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    color: white !important;
}

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

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 11px 25px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover { background: #CBD5E1; transform: translateY(-1px); }

/* ─── Main Content ────────────────────────────────── */
main { flex: 1; padding: 40px 20px; }

/* ─── Hero Section ────────────────────────────────── */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: none;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    line-height: 1.6;
}

.hero > div { position: relative; }

/* ─── Feature Cards ───────────────────────────────── */
.feature-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.feature-card h3 { margin-bottom: 12px; color: var(--primary-color); font-size: 1.4rem; }

/* ─── Generic Card ────────────────────────────────── */
.card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    max-width: 520px;
    margin: 0 auto;
}

.card-full { max-width: 100%; }

/* ─── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; position: relative; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232,175,193,0.25);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border: 1.5px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 500;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.active { background: var(--primary-light); color: var(--primary-color); }

/* ─── Step Indicator ──────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(232,175,193,0.15);
}

.step.completed .step-circle {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 10px;
    white-space: nowrap;
}

.step.active .step-label { color: var(--primary-color); font-weight: 600; }
.step.completed .step-label { color: var(--success-color); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 12px;
    transition: var(--transition);
}

.step-line.completed { background: var(--success-color); }

/* ─── Map Container ───────────────────────────────── */
.map-container {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.map-container-lg { height: 480px; }
.map-container-full { height: 520px; border-radius: 0; border: none; }

/* ─── Route Preview Box ───────────────────────────── */
.route-preview {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232,175,193,0.15);
    flex-wrap: wrap;
}

.route-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.route-stat span { font-weight: 400; color: var(--text-muted); }

/* ─── Search Layout ───────────────────────────────── */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 88px;
}

.filter-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group { margin-bottom: 20px; }

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--border-color) 50%);
    border-radius: 4px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(232,175,193,0.2);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(232,175,193,0.25); }

.range-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Ride Card ───────────────────────────────────── */
.rides-list { display: flex; flex-direction: column; gap: 16px; }

.ride-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.ride-card:hover,
.ride-card.highlighted {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232,175,193,0.1), var(--shadow-md);
    transform: translateX(3px);
}

/* Driver Avatar */
.driver-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Card Body */
.ride-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.ride-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
}

.ride-route .arrow { color: var(--text-muted); font-size: 1.1rem; }

/* Info-Chips unter der Route */
.ride-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #F1F5F9;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.ride-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.ride-meta-item { display: flex; align-items: center; gap: 4px; }

/* Star rating */
.stars { color: var(--warning-color); font-size: 0.85rem; letter-spacing: 1px; }

/* Card Right */
.ride-card-right { text-align: right; flex-shrink: 0; }

.ride-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.ride-price-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }

/* ─── Badges ──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16,185,129,0.1); color: var(--success-color); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning-color); }
.badge-danger  { background: rgba(239,68,68,0.1);  color: var(--danger-color);  }
.badge-primary { background: var(--primary-light);  color: var(--primary-color); }

/* ─── No Results State ────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-color); }
.empty-state p { font-size: 0.9rem; }

/* ─── Alert / Flash Messages ──────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #065F46; }
.alert-danger  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #7F1D1D; }
.alert-info    { background: var(--primary-light);  border: 1px solid rgba(232,175,193,0.2);   color: #3730A3; }

/* ─── Page Header ─────────────────────────────────── */
.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.page-header p { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* ─── Ride Detail ─────────────────────────────────── */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.driver-profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.driver-profile-card .avatar-lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.driver-profile-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }

/* Ride info table */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}

.info-item {
    background: var(--bg-color);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.info-item .info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-item .info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* ─── Search Top Bar ──────────────────────────────── */
.search-topbar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.search-topbar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }
.search-topbar .form-group label { font-size: 0.78rem; }

/* ─── Loading Spinner ─────────────────────────────── */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

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

/* ─── Footer ──────────────────────────────────────── */
.main-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ─── Utilities ───────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ─── Notification Option Cards (profile.php) ────── */
.notif-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px 14px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}
.notif-option:hover        { border-color: var(--primary-color); background: var(--primary-light); }
.notif-option--active      { border-color: var(--primary-color); background: var(--primary-light); }

/* ─── Price Warning Banners ───────────────────────── */
.price-warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.5;
}
.price-warn--ok   { background: rgba(16,185,129,.1);  border:1px solid rgba(16,185,129,.3); color:#065F46; }
.price-warn--high { background: rgba(239,68,68,.08);  border:1px solid rgba(239,68,68,.25); color:#7F1D1D; }
.price-warn--low  { background: rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.3); color:#78350F; }

/* ─── My Rides Dashboard ──────────────────────────── */
.my-rides-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: fit-content;
}
.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active { background: white; color: var(--primary-color); box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text-color); background: rgba(255,255,255,.6); }

.my-ride-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.my-ride-card:hover { box-shadow: var(--shadow-md); }

.my-ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg,#4F46E5,#06B6D4);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
}
.my-ride-header.cancelled { background: linear-gradient(135deg,#94A3B8,#CBD5E1); }
.my-ride-route { font-weight: 700; font-size: 1.05rem; }
.my-ride-meta  { display: flex; gap: 12px; font-size: .82rem; opacity: .9; flex-wrap: wrap; }

.my-ride-body { padding: 16px 20px; }
.my-ride-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: .87rem; color: var(--text-muted); margin-bottom: 14px; }

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}
.booking-info { font-size: .88rem; font-weight: 600; }
.booking-info small { font-weight: 400; color: var(--text-muted); display: block; }
.booking-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-sm {
    padding: 5px 14px;
    font-size: .8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}
.btn-sm-success { background: rgba(16,185,129,.15); color: #065F46; }
.btn-sm-success:hover { background: var(--success-color); color: white; }
.btn-sm-danger  { background: rgba(239,68,68,.1); color: #7F1D1D; }
.btn-sm-danger:hover  { background: var(--danger-color); color: white; }
.btn-sm-cancel  { background: var(--border-color); color: var(--text-muted); }
.btn-sm-cancel:hover  { background: #CBD5E1; }

.no-bookings { font-size: .85rem; color: var(--text-muted); font-style: italic; }

/* ─── Inbox / Briefkasten ─────────────────────────── */
.inbox-unread-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.inbox-empty {
    text-align: center;
    padding: 100px 20px 120px;
}
.inbox-empty .inbox-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}
.inbox-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 10px;
}
.inbox-empty p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.inbox-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.inbox-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    border-radius: 0;
    position: relative;
}
.inbox-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.inbox-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.inbox-item:only-child {
    border-radius: var(--radius-md);
}

.inbox-item:hover {
    background: var(--primary-light);
}

.inbox-item--unread {
    background: white;
    box-shadow: inset 3px 0 0 var(--primary-color);
}
.inbox-item--unread:hover {
    background: var(--primary-light);
}

/* ── Notification Type Icon ── */
.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}
.notif-icon--danger  { background: rgba(239,68,68,0.08);  color: var(--danger-color);  }
.notif-icon--success { background: rgba(16,185,129,0.08); color: var(--success-color); }
.notif-icon--primary { background: rgba(248,165,194,0.12); color: var(--primary-color); }
.notif-icon--warning { background: rgba(245,158,11,0.1);  color: var(--warning-color); }
.notif-icon--info    { background: rgba(59,130,246,0.08);  color: #3B82F6; }
.notif-icon--default { background: var(--border-color);    color: var(--text-muted);    }

/* ── Content Area ── */
.inbox-item-body {
    flex: 1;
    min-width: 0;
}

.inbox-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.inbox-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}
.inbox-item--unread .inbox-item-title {
    font-weight: 700;
}

.inbox-item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.inbox-item-message {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 6px;
}

.inbox-item-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.inbox-item-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ── Action Buttons ── */
.inbox-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.inbox-item:hover .inbox-item-actions {
    opacity: 1;
}

.inbox-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    padding: 0;
    font-family: inherit;
}
.inbox-action-read:hover {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    transform: scale(1.1);
}
.inbox-action-delete:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.1);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .search-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .detail-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .inbox-item { padding: 18px 16px; gap: 14px; }
    .inbox-item-actions { opacity: 1; flex-direction: row; }
    .inbox-item-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 600px) {
    .ride-card { grid-template-columns: auto 1fr; }
    .ride-card-right {
        grid-column: 2;
        text-align: left;
    }
    .nav-links { display: none; }
    .search-topbar { flex-direction: column; }
}



/* =======================================================
   RADICAL EDITORIAL REDESIGN (LIFESTYLE / SKINCARE VIBE)
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #F8A5C2 !important; /* Soft modern pink */
    --primary-hover: #F28EAE !important;
    --primary-light: #FDF4F7 !important;
    --bg-color: #FDFCFB !important;      /* Very soft creme/off-white */
    --text-color: #2D2A26 !important;    /* Elegant dark grey, not pure black */
    --text-muted: #999999 !important;
    --card-bg: #FFFFFF !important;
    --border-color: #F0EFEA !important;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.02) !important;
    --shadow-md: 0 20px 40px rgba(0,0,0,0.04) !important;
    --radius-sm: 16px !important;
    --radius-md: 24px !important;
    --radius-lg: 32px !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    background-image: none !important; /* remove dots from before */
}

/* Floating Clean Header */
.main-header {
    background: rgba(253, 252, 251, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: none !important;
    border-bottom: none !important;
    padding: 15px 0 !important;
}

.logo {
    color: var(--text-color) !important;
    font-size: 1.4rem !important;
    letter-spacing: -0.5px !important;
    font-weight: 800 !important;
}

.logo svg {
    stroke: var(--primary-color) !important;
}

.nav-links a {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.5px !important;
    text-transform: lowercase !important;
}
.nav-links a:hover {
    color: var(--text-color) !important;
    background: transparent !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 14px 34px !important;
    font-weight: 500 !important;
    box-shadow: 0 8px 25px rgba(248,165,194,0.3) !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}
.btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(248,165,194,0.4) !important;
}

.btn-outline {
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    border-radius: 50px !important;
    padding: 13px 32px !important;
    font-weight: 500 !important;
    background: white !important;
}
.btn-outline:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: var(--primary-light) !important;
    transform: translateY(-2px) !important;
}

/* Editorial Hero */
.editorial-hero {
    position: relative;
    padding: 180px 20px 140px;
    text-align: center;
    background: var(--bg-color);
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 800;
    color: rgba(248,165,194,0.05); /* very soft pink word */
    z-index: 1;
    pointer-events: none;
    line-height: 1;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.display-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text-color);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .display-title { font-size: 3.5rem; }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Decorative Motifs */
.pink-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.15;
    z-index: 0;
}
.dot-1 { width: 400px; height: 400px; top: -150px; right: -100px; filter: blur(60px); }
.dot-2 { width: 250px; height: 250px; bottom: 50px; left: -50px; filter: blur(40px); opacity: 0.1;}
.deco-circle { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); display: inline-block; margin-right: 12px; margin-bottom: 4px;}

/* Magazine Sections */
.editorial-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.mag-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px;
}
.mag-block.right-align { flex-direction: row-reverse; }

@media (max-width: 768px) {
    .mag-block, .mag-block.right-align { flex-direction: column; gap: 40px; text-align: center; margin-bottom: 80px;}
}

.mag-text {
    flex: 1;
}
.mag-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
    color: var(--text-color);
}
.mag-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.mag-visual {
    flex: 1;
    height: 500px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.bg-cream { background: #FAF7F2; }
.bg-grey { background: #F5F5F7; }

.mag-icon {
    font-size: 5rem;
    z-index: 2;
    opacity: 0.9;
}

/* General Layouts (Cards / Lists) Reimagined */
.card {
    background: var(--card-bg) !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: var(--radius-md) !important;
}

/* Minimalist Ride Cards */
.ride-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 24px 8px !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.ride-card:last-child { border-bottom: none !important; }

.ride-card:hover {
    background: rgba(248, 165, 194, 0.03) !important;
    transform: none !important;
}

.driver-avatar {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    width: 60px !important; height: 60px !important;
    font-size: 1.2rem !important;
}

.ride-route {
    font-size: 1.15rem !important;
    color: var(--text-color) !important;
    margin-bottom: 8px !important;
}
.ride-route .arrow { color: var(--primary-color) !important; font-weight: 300 !important; }

.ride-meta-item {
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.ride-price {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
}

/* Search Sidebar */
.filter-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-right: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding-right: 40px !important;
}
