/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700; /* Yellow */
    --secondary-color: #000000; /* Black */
    --accent-color: #FFB700; /* Darker Yellow for hover states */
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --background-light: #F8F8F8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.mobile-menu-item:hover {
    background-color: var(--background-light);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav.logged-in {
    align-items: center;
    gap: 1rem;
}

.dashboard-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1rem;
}

/* Secondary Navigation */
.secondary-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.secondary-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.status-toggle-container {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.dashboard-title-main {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dashboard-title-section {
    text-align: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.dashboard-title-centered {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--primary-color);
}

.btn:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Landing Page Styles */
.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    text-align: center;
    /* Replace black background with minimalistic gradient and pattern */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23FFD700" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 50px 50px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: calc(100vh - 70px);
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: calc(100vh - 70px);
    position: relative;
}

/* Add a subtle overlay for better text readability */
.landing-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
}

/* Ensure content appears above the overlay */
.landing-hero {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.landing-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.landing-features {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Price Estimate */
.price-estimate {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    color: var(--primary-color);
}

#estimatedPrice {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Map in Dashboard */
.dashboard-main .map {
    height: 300px;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.map {
    flex: 1;
    background-color: #e5e5e5;
}

/* Ride Options Styles */
.ride-options {
    margin-bottom: 2rem;
}

.ride-options h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.option:hover {
    background-color: #f5f5f5;
}

.option.selected {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.option img {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.option-details {
    flex: 1;
}

.option-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.option-details p {
    font-size: 0.8rem;
    color: #666;
}

.price {
    font-weight: 500;
}

/* Form Styles */
.ride-form {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #000;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    width: auto;
    margin-right: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 1.5rem;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f8f8;
}



.dashboard-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 280px;
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.user-profile h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.user-profile p {
    color: #666;
    font-size: 0.9rem;
}

.driver-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.menu-item.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 2rem 0;
}

.earnings-summary {
    display: flex;
    gap: 1rem;
}

.earnings-card {
    flex: 1;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.earnings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.earnings-card p {
    color: #666;
    font-size: 0.9rem;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:focus + .slider {
    box-shadow: 0 0 1px #27ae60;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    
    .header {
        position: relative;
        z-index: 100;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .dashboard-title {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .main {
        flex: 1;
        padding: 1rem;
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 50%;
    }
    
    .map {
        height: 50%;
    }
    
    .landing-hero {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .landing-hero h2 {
        font-size: 2rem;
    }
    
    .landing-hero p {
        font-size: 1rem;
    }
    
    .landing-features {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
    }
    
    .feature {
        margin-bottom: 2rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .earnings-summary {
        flex-direction: column;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group input,
    .input-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .price-display {
        margin: 1rem 0;
        text-align: center;
    }
    
    .ride-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ride-option {
        padding: 0.8rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .mobile-menu {
        width: 100%;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .landing-hero h2 {
        font-size: 1.8rem;
    }
    
    .dashboard-main {
         padding: 0.5rem;
     }
     
     .secondary-nav-content {
         padding: 0 1rem;
     }
     
     .dashboard-title-main {
         font-size: 1.4rem;
         letter-spacing: 1px;
     }
     
     .status-toggle-container {
         position: static;
         margin-top: 0.5rem;
     }
     
     .secondary-nav-content {
         flex-direction: column;
         gap: 0.5rem;
     }
}