@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --uber-black: #1A1A1A;
    --uber-white: #FFFFFF;
    --uber-gray: #F8F9FA;
    --uber-dark-gray: #E9ECEF;
    --primary: #000000;
    --accent: #276EF1;
    --success: #05A357;
    --danger: #E11900;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --radius: 16px;
}

[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .drawer {
    left: auto;
    right: -300px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

[lang="ar"] .drawer.open {
    left: auto;
    right: 0;
}

[lang="ar"] .close-drawer {
    right: auto;
    left: 20px;
}

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

body {
    background-color: var(--uber-white);
    color: var(--uber-black);
    min-height: 100vh;
}

/* Glassmorphism Panel (Auth Specific) */
.auth-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    color: var(--uber-black);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-input-group {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--uber-black);
}

.auth-input-group input {
    background: transparent;
    border: none;
    color: var(--uber-black);
    outline: none;
    width: 100%;
}

.auth-text-dim { color: #666; }

/* Map Styling */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* UI Overlay Layer */
.ui-overlay {
    position: relative;
    z-index: 1000;
    pointer-events: none;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.ui-overlay > * {
    pointer-events: auto;
}

/* Header / Drawer Trigger */
.app-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
}

/* Bottom Sheet (Uber Style) */
.ride-panel {
    margin-top: auto;
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    padding: 24px;
    transition: transform 0.3s ease;
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
    .ride-panel { padding-bottom: 80px; } /* Space for the button */
    .btn-black { position: sticky; bottom: 0; z-index: 5; }
}

.search-bar-trigger {
    background: var(--uber-gray);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.dot-icon { width: 8px; height: 8px; border-radius: 50%; }
.dot-blue { background: var(--primary); }
.dot-square { width: 8px; height: 8px; background: black; }

/* Ride Options */
.ride-list {
    max-height: 300px;
    overflow-y: auto;
}

.ride-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: background 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.ride-item:hover { background: var(--uber-gray); }
.ride-item.selected { border-color: var(--uber-black); background: var(--uber-gray); }

/* Side Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease, right 0.3s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    padding: 40px 25px;
}

.drawer.open { left: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--uber-gray);
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    color: var(--uber-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}

/* Premium Inputs and Buttons */
.btn-black {
    background: black;
    color: white;
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    font-size: 18px;
}

.btn-action {
    background: var(--primary);
    color: black;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.premium-input-group {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.premium-input-group input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

.text-dim { color: rgba(0,0,0,0.5); }
[class*="glass-panel"] .text-dim, [class*="auth-card"] .text-dim, .admin-sidebar .text-dim { color: rgba(255,255,255,0.5); }
.fw-800 { font-weight: 800; }
.pointer { cursor: pointer; }

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

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