/* Uber Driver App Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #090909;
    --primary-white: #f8f8f8;
    --uber-blue: #ff833e;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #f44336;
    --gray-light: #9b9b9b;
    --gray-medium: #666666;
    --gray-dark: #333333;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.login-header {
    padding: 20px 16px;
    text-align: center;
}

.logo {
    height: 40px;
    width: auto;
}

.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-large);
    width: 100%;
    max-width: 600px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-black);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--uber-blue);
}

.form-input.error {
    border-color: var(--error-red);
}

.phone-input-group {
    display: flex;
    gap: 12px;
}

.country-select {
    width: 100px;
    padding: 16px 12px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 12px;
    background-color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-black);
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-black);
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    border-color: var(--gray-medium);
}

.btn-full {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--gray-light);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 16px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.error-message {
    color: var(--error-red);
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    color: var(--success-green);
    font-size: 14px;
    margin-top: 8px;
}

.disclaimer {
    font-size: 12px;
    color: var(--gray-light);
    text-align: center;
    margin-top: 24px;
    line-height: 1.4;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background-color: #f5f5f5;
}

.dashboard-header {
    background-color: white;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--uber-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.online-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch.active {
    background-color: var(--success-green);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.dashboard-content {
    padding: 20px 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--uber-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-card {
    background: linear-gradient(135deg, var(--success-green), #45a049);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.earnings-title {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.earnings-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.earnings-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* Trip Request Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.trip-request {
    text-align: center;
}

.trip-timer {
    font-size: 48px;
    font-weight: 700;
    color: var(--warning-orange);
    margin: 16px 0;
}

.trip-details {
    text-align: left;
    margin: 20px 0;
}

.trip-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.trip-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-accept {
    background-color: var(--success-green);
    color: white;
    flex: 1;
}

.btn-decline {
    background-color: var(--error-red);
    color: white;
    flex: 1;
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-medium);
    font-size: 16px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: var(--uber-blue);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    width: 150px;
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f1f1f1;
}


/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content {
        padding-bottom: 100px; /* Space for bottom navigation */
    }
}

@media (max-width: 480px) {
    .phone-input-group {
        flex-direction: column;
    }

    .country-select {
        width: 100%;
    }

    .trip-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--uber-blue);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.hidden { display: none; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
