/* Modern Taxi Booking App Customizations */
:root {
    --primary: #111827;
    --accent: #fbbf24;
    --bg: #f3f4f6;
    --text: #111827;
}

html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* App shell */
.app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: linear-gradient(90deg, #020617, #111827) !important;
    color: #f9fafb !important;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15,23,42,0.4);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-logo {
    font-size: 1.25rem;
    font-weight: 800;
}

.app-beta-pill {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background-color: var(--accent);
    color: #111827;
    font-weight: 600;
}

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.app-header-nav a {
    margin-left: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: #e5e7eb;
    transition: background-color .15s ease, color .15s ease;
}

.app-header-nav a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
    color: #fff;
}

.app-header-nav a.active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(251,191,36,0.08);
}

.app-main {
    flex: 1;
    padding: 1.5rem;
}

/* Hero / landing */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #111827, #020617);
    color: #f9fafb;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
}

.hero-secondary {
    background: transparent;
    border-color: #e5e7eb;
    color: #e5e7eb;
}

.hero-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Auth / login */
.auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(15,23,42,0.16);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-header p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Home page */
.home-shell {
    max-width: 1024px;
    margin: 0 auto;
}

.home-hero-card {
    background: linear-gradient(135deg, #111827, #020617);
    color: #f9fafb;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-hero-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-hero-card p {
    margin: 0;
    color: #9ca3af;
}

/* Map page */
.map-shell {
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons & controls overrides */
.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #111827 !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
}

.btn-secondary {
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.85rem;
}

.card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

.card-header {
    border-radius: 1rem 1rem 0 0;
}

/* Remove old Blazor defaults */
.page, .sidebar, .top-row {
    all: unset;
}

h1:focus { outline: none; }

#blazor-error-ui {
    background: #fee2e2;
}

/* Existing Uber-like styles retained as-is below if used by MAUI components */
.uber-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7f7f8;
}

.uber-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #e2e2e2;
    background: #ffffff;
}

.uber-header-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.uber-header-actions a {
    margin-left: 16px;
}

.uber-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uber-map-shell {
    position: relative;
    flex: 1;
    min-height: 0;
}

.uber-map-surface {
    position: absolute;
    inset: 0;
    background: #e5e5e5;
}

.uber-bottom-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 24px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 40%);
    pointer-events: none;
}

.uber-bottom-card-inner {
    margin: 0 auto;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
    padding: 16px 16px 20px 16px;
    pointer-events: auto;
}

.uber-bottom-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e0e0e0;
    margin: 0 auto 12px auto;
}

.availability-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.availability-dialog {
    max-width: 420px;
    width: 90%;
}

@media (min-width: 768px) {
    .uber-bottom-card-inner {
        border-radius: 18px;
        margin-bottom: 16px;
    }
}

/*
Source - https://stackoverflow.com/a/65357832
Posted by Sheldon Cohen
Retrieved 2026-03-29, License - CC BY-SA 4.0
*/

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* ============== Layout polish (header, footer, role menu) ============== */
.app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.app-logo-link:hover { text-decoration: none; }

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.app-header-nav a {
    margin-left: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: #e5e7eb;
    transition: background-color .15s ease, color .15s ease;
}

.app-header-nav a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
    color: #fff;
}

.app-header-nav a.active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(251,191,36,0.08);
}

.app-role-pill {
    margin-left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(251,191,36,0.15);
    color: var(--accent);
    border: 1px solid rgba(251,191,36,0.35);
}

/* User menu */
.app-user-menu { position: relative; margin-left: 0.75rem; }

.app-user-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}

.app-user-button:hover { background: rgba(255,255,255,0.12); }

.app-user-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #111827;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-user-name { font-size: 0.9rem; }
.app-user-caret { font-size: 0.7rem; opacity: 0.8; }

.app-user-dropdown {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    min-width: 200px;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.18);
    padding: 0.4rem 0;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.app-user-dropdown .dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.55rem 1rem;
    color: #111827;
    font-size: 0.92rem;
    cursor: pointer;
}
.app-user-dropdown .dropdown-item:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.app-user-dropdown .dropdown-divider {
    height: 1px; background: #e5e7eb; margin: 0.3rem 0;
}

.app-user-dropdown .dropdown-logout { color: #b91c1c; font-weight: 600; }

/* Always-visible logout (next to user menu) */
.app-logout-btn {
    margin-left: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fde68a;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
}
.app-logout-btn:hover { background: rgba(251,191,36,0.15); color: #fff; border-color: var(--accent); }

/* Mobile hamburger */
.app-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}
.app-nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #f9fafb;
    margin: 4px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .app-header { flex-wrap: wrap; }
    .app-nav-toggle { display: inline-block; }
    .app-header-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin-top: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .app-header-nav.open { max-height: 600px; }
    .app-header-nav a { margin-left: 0; }
    .app-user-menu, .app-logout-btn, .app-role-pill { margin-left: 0; }
    .app-user-dropdown { right: auto; left: 0; }
}

/* ============== Footer ============== */
.app-footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 2rem;
}
.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.app-footer-inner strong { color: #fff; }
.app-footer-links a {
    color: #fbbf24;
    margin-right: 1rem;
}
.app-footer-links a:hover { color: #fde68a; text-decoration: none; }
.app-footer-meta { color: #94a3b8; font-size: 0.8rem; }

@media (max-width: 600px) {
    .app-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============== Global toast / alert banner ============== */
.app-toast-container {
    position: sticky;
    top: 64px;
    z-index: 1020;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 1rem;
}

.app-toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.15);
    margin-top: 0.75rem;
    font-size: 0.9rem;
    max-width: 90vw;
    border: 1px solid transparent;
    animation: app-toast-in .25s ease;
}

@keyframes app-toast-in {
    from { transform: translateY(-6px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.app-toast-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(255,255,255,0.6);
}

.app-toast-msg { line-height: 1.3; }

.app-toast-close {
    background: transparent;
    border: 0;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 0.25rem;
    color: inherit;
}

.app-toast-info    { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }
.app-toast-success { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.app-toast-warning { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.app-toast-danger  { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }

/* ============================================================== */
/* SKELETON LOADERS — see LetsGo MAUI app.css for full notes.     */
/* ============================================================== */
.skeleton-bar { display: block; width: 100%; border-radius: 8px; background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
.skeleton-rounded { border-radius: 16px; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-bar { animation: none; opacity: 0.6; } }
.skeleton-card { background:#fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(15,23,42,0.05); padding: 14px 16px; margin-bottom: 12px; }

