/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Container */
.container {
    max-width: 100%;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

/* Login/Register Screens */
.logo {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.logo p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.back-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Message Box */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Header */
.header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.user-info i {
    font-size: 24px;
    color: #667eea;
}

.logout-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Vehicle Selection */
.vehicle-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vehicle-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.vehicle-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.vehicle-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

/* Map Container */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Fare Summary */
.fare-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.fare-summary h3 {
    margin-bottom: 15px;
    color: #333;
}

.fare-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fare-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fare-item.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2em;
    color: #667eea;
}

/* Status Screen */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.status-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.status-card {
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.status-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    margin: 20px 0;
    font-size: 1.2em;
    color: #333;
}

/* Driver Info */
.driver-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.driver-avatar i {
    font-size: 3rem;
    color: #667eea;
}

.driver-details {
    text-align: left;
}

.driver-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.driver-details p {
    color: #666;
    margin-bottom: 5px;
}

/* Status Steps */
.status-updates {
    margin-top: 30px;
}

.status-step {
    display: flex;
    align-items: center;
    margin: 15px 0;
    opacity: 0.5;
}

.status-step.active {
    opacity: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.status-step.active .step-number {
    background: #667eea;
    color: white;
}

/* Switch Form */
.switch-form {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.switch-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 3rem;
    }
}

/* Map Icons */
.pickup-icon {
    color: #4CAF50;
}

.drop-icon {
    color: #f44336;
}