/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Variables CSS */
:root {
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --secondary-color: #ff6b35;
    --background-dark: #000000;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #666666;
    --border-color: #333333;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --border-radius: 12px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo small {
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Header Actions */
.login-btn, .user-menu-btn {
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-btn:hover, .user-menu-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.user-dropdown a i {
    color: var(--primary-color);
    width: 16px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Welcome Section */
.welcome-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0, 255, 0, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--background-dark);
    border: none;
    padding: 22px 45px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 255, 0, 0.4);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #111111, #222222);
    border-radius: 45px;
    padding: 25px;
    position: relative;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--border-color);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 80px 30px;
    position: relative;
}

.pickup-marker, .destination-marker {
    font-size: 2.5rem;
    z-index: 2;
}

.pickup-marker {
    color: var(--primary-color);
}

.destination-marker {
    color: var(--secondary-color);
}

.route-animation {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 200px;
}

.route-animation .route-line {
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    position: relative;
}

.moving-car {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: moveCar 3s ease-in-out infinite;
}

.moving-car i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

@keyframes moveCar {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 30px); }
}

/* App Section */
.app-section {
    padding: 40px 20px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.ride-step {
    background: rgba(255, 255, 255, 0.98);
    color: var(--background-dark);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    animation: slideIn 0.5s ease-out;
}

.ride-step.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--border-color);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--text-muted);
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--background-dark);
}

.step-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Location Form */
.location-form {
    margin-bottom: 20px;
}

.location-inputs {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.pickup-group {
    margin-bottom: 20px;
}

.destination-group {
    margin-bottom: 20px;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.pickup-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.destination-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.location-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--background-dark);
    outline: none;
    font-weight: 500;
}

.location-input::placeholder {
    color: #6c757d;
}

.location-btn {
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.route-connector {
    display: flex;
    align-items: center;
    padding-left: 35px;
    margin: -10px 0;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: #dee2e6;
    border-radius: 1px;
}

.connector-dots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 12px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
}

/* Quick Destinations */
.quick-destinations {
    margin-bottom: 30px;
}

.quick-destinations h4 {
    color: var(--background-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 0, 0.05);
}

.quick-btn i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.quick-btn:hover i {
    color: var(--primary-color);
}

.quick-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--background-dark);
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: var(--background-dark);
    color: var(--text-primary);
    border: 2px solid var(--background-dark);
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn:hover:not(:disabled) {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    width: 100%;
    background: transparent;
    color: var(--background-dark);
    border: 2px solid var(--border-color);
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--background-dark);
}

.cancel-btn {
    width: 100%;
    background: transparent;
    color: var(--error-color);
    border: 2px solid var(--error-color);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cancel-btn:hover {
    background: var(--error-color);
    color: white;
}

/* Trip Summary */
.trip-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.from, .to {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.from i {
    color: var(--primary-color);
}

.to i {
    color: var(--secondary-color);
}

.summary-info {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.summary-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-info i {
    color: var(--primary-color);
}

/* Vehicle Options */
.vehicle-options {
    margin-bottom: 25px;
}

.vehicle-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-align: left;
}

.vehicle-option:hover,
.vehicle-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 255, 0, 0.05);
}

.vehicle-icon {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vehicle-option.active .vehicle-icon {
    background: var(--primary-color);
    color: var(--background-dark);
}

.vehicle-icon i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.vehicle-option.active .vehicle-icon i {
    color: var(--background-dark);
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h4 {
    color: var(--background-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.vehicle-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.eta {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.vehicle-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Searching Screen */
.searching-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    height: 120px;
}

.pulse-ring {
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    height: 120px;
    width: 120px;
    position: absolute;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.33);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.searching-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.searching-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.searching-content {
    text-align: center;
    margin-bottom: 30px;
}

.searching-content h2 {
    color: var(--background-dark);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.searching-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.searching-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    animation: progressAnimation 30s linear infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.searching-tips {
    margin-bottom: 20px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tip i {
    color: var(--primary-color);
}

/* Driver Found Screen */
.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.success-header h2 {
    color: var(--background-dark);
    margin-bottom: 8px;
}

.success-header p {
    color: var(--text-muted);
}

/* Driver Card */
.driver-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.driver-photo {
    position: relative;
}

.driver-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.driver-rating {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.driver-rating i {
    font-size: 0.7rem;
}

.driver-info {
    flex: 1;
}

.driver-info h3 {
    color: var(--background-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.driver-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.driver-eta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.driver-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Tracking */
.ride-tracking {
    margin-bottom: 25px;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tracking-header h4 {
    color: var(--background-dark);
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--error-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--error-color);
    border-radius: 50%;
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.tracking-map {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    height: 200px;
    position: relative;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
}

.map-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.driver-location {
    position: absolute;
    top: 20px;
    left: 20px;
}

.driver-marker {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: driverPulse 2s infinite;
}

@keyframes driverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.driver-marker i {
    color: var(--background-dark);
    font-size: 1.2rem;
}

/* Ride Progress Screen */
.progress-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-header h2 {
    color: var(--background-dark);
    margin: 0;
}

.progress-map {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    margin-bottom: 25px;
}

.route-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.route-start, .route-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.route-start i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.route-end i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.route-start span, .route-end span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.route-path {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 120px;
}

.progress-line {
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    position: relative;
}

.progress-car {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: progressMove 4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes progressMove {
    0%, 100% { top: 20%; }
    50% { top: 80%; }
}

.progress-car i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Ride Info Grid */
.ride-info {
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.info-item div {
    flex: 1;
}

.info-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-item .value {
    display: block;
    font-weight: 600;
    color: var(--background-dark);
    font-size: 1.1rem;
}

/* Driver Contact */
.driver-contact {
    margin-bottom: 20px;
}

.contact-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
}

/* Ride Completed Screen */
.completion-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.success-circle {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: completionBounce 0.8s ease-out;
}

@keyframes completionBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.success-circle i {
    font-size: 3rem;
    color: white;
}

.completion-content {
    text-align: center;
    margin-bottom: 30px;
}

.completion-content h2 {
    color: var(--background-dark);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.completion-content p {
    color: var(--text-muted);
}

/* Trip Receipt */
.trip-receipt {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.trip-receipt h3 {
    color: var(--background-dark);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.detail-row span:last-child {
    font-weight: 600;
    color: var(--background-dark);
}

.total-row {
    padding-top: 12px;
    font-size: 1.1rem;
}

.total-row span {
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Rating Section */
.rating-section {
    text-align: center;
    margin-bottom: 30px;
}

.rating-section h3 {
    color: var(--background-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-comments {
    position: relative;
}

.rating-comments textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    color: var(--background-dark);
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.3s ease;
}

.rating-comments textarea:focus {
    border-color: var(--primary-color);
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 2px 6px;
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    color: var(--background-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header i {
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: var(--background-dark);
}

/* Form Styles */
form {
    padding: 25px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--background-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--background-dark);
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group input:focus + i {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--background-dark);
    font-size: 10px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: var(--background-dark);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.modal-footer {
    padding: 20px 30px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.modal-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: rgba(17, 17, 17, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    animation: toastSlideIn 0.4s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--error-color);
}

.toast.warning i {
    color: var(--warning-color);
}

.toast.info i {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-features {
        justify-content: center;
        gap: 20px;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .app-container {
        padding: 0 10px;
    }

    .ride-step {
        padding: 30px 25px;
    }

    .quick-buttons {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group:first-child {
        margin-bottom: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header, form, .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .info-grid {
        gap: 10px;
    }

    .info-item {
        padding: 12px;
    }

    .completion-actions {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .logo small {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 15px;
    }

    .ride-step {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .vehicle-option {
        padding: 15px;
        gap: 15px;
    }

    .vehicle-icon {
        width: 40px;
        height: 40px;
    }

    .driver-card {
        padding: 15px;
        gap: 15px;
    }

    .tracking-map {
        height: 150px;
    }

    .route-path {
        height: 100px;
    }

    .star-rating {
        gap: 8px;
    }

    .star-btn {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header, .modal, .toast-container, .loading-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .trip-receipt {
        border: 2px solid #000;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Mantém o esquema escuro atual */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .primary-btn, .login-btn, .user-menu-btn, .cta-btn {
        border: 2px solid;
    }
    
    .input-group input:focus {
        outline: 2px solid var(--primary-color);
    }
}