/* WoRide Main Styles */

/* === CORE RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--background-teal-light) 0%, var(--background-light) 50%, #FFF5E6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.loading-content .logo {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

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

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

.loading-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Destination Search Autocomplete */
.destination-dropdown {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-gray);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--background-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Fare Estimate Box */
.fare-estimate {
    margin-top: 12px;
    padding: 12px;
    background: var(--selected-bg);
    border-radius: 12px;
    border: 1px solid var(--primary-orange);
}

/* Route Cards */
.routes-section {
    margin-bottom: 24px;
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.route-dot {
    font-size: 10px;
}

/* History Filters */
.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-gray);
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    color: white;
}

.filter-btn:hover {
    border-color: var(--primary-orange);
}

/* History Cards */
.history-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.history-route {
    display: flex;
    align-items: start;
    gap: 12px;
    margin: 12px 0;
}

.route-line {
    width: 2px;
    height: 24px;
    background: var(--border-gray);
    margin: 4px 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: var(--success-green);
    color: white;
}

.status-cancelled {
    background: var(--error-red);
    color: white;
}

/* Payment Options */
.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid var(--border-gray);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary-orange);
}

.payment-option.selected {
    border-color: var(--primary-orange);
    background: var(--selected-bg);
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Profile Avatar */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-teal);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Button Styles */
.btn-secondary {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--primary-orange);
    background: white;
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Icon Buttons */
.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--background-gray);
    color: var(--primary-orange);
}

.delete-route {
    background: var(--error-red);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.delete-route:hover {
    opacity: 0.8;
}

/* Taxi Card Enhancements */
.taxi-card {
    animation: fadeIn 0.4s ease-out;
}

.taxi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
    border-color: var(--primary-orange) !important;
}

/* Quick Action Buttons */
button[id^="quick-"] {
    transition: all 0.2s ease;
}

button[id^="quick-"]:active {
    transform: translateY(-2px) scale(0.98);
}

/* Map Preview Hover */
.map-preview:hover {
    border-color: var(--primary-teal) !important;
}

/* Destination Input Focus */
#destination-input:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(251, 160, 2, 0.1);
}

/* Fare Estimate Animation */
#fare-estimate {
    animation: slideIn 0.3s ease-out;
}

/* Select Taxi Button Hover */
.select-taxi-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(251, 160, 2, 0.3);
}

/* Route Card Hover Effect */
.route-card:active {
    transform: scale(0.98);
}

/* Smooth Transitions */
* {
    transition: border-color 0.2s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .taxi-card {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .taxi-card > div:last-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }
}

/* App Container */
.app-container {
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFEFF 50%, #FFF7ED 100%);
    position: relative;
}

/* Desktop: Full width, no borders */
@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-light) 100%);
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: var(--spacing-sm);
}

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

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.header-spacer {
    width: 40px;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: transparent;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-gray);
    padding: 12px 0 20px 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 16px;
    transition: all var(--transition-normal);
    min-width: 70px;
    border-radius: 12px;
}

.nav-item i {
    font-size: 24px;
    transition: transform var(--transition-normal);
}

.nav-item span {
    font-size: 12px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary-orange);
    background: var(--selected-bg);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:hover {
    color: var(--primary-teal);
    background: var(--background-teal-light);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: var(--z-menu);
    overflow-y: auto;
}

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

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-light) 100%);
    color: white;
}

.menu-header h2 {
    font-size: 20px;
    color: white;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-list {
    list-style: none;
    padding: var(--spacing-md) 0;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.menu-list li a:hover {
    background: linear-gradient(90deg, var(--background-teal-light) 0%, transparent 100%);
    border-left: 3px solid var(--primary-orange);
    padding-left: 13px;
}

.menu-list li a i {
    font-size: 20px;
    width: 24px;
    color: var(--text-secondary);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: var(--z-overlay);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #F97316 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(251, 160, 2, 0.3);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 160, 2, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-gray);
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 16px;
    background-color: var(--background-gray);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    border-width: 2px;
}

/* Page Specific Styles */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    outline: none;
}

.map-preview {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-gray);
    border-radius: var(--radius-md);
}

.section-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.taxi-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.taxi-icon {
    width: 56px;
    height: 56px;
    background-color: var(--background-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxi-info {
    flex: 1;
}

.taxi-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.taxi-info p {
    font-size: 14px;
    margin: 2px 0;
}

.taxi-card .btn {
    min-width: 84px;
    padding: 10px 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-icon {
    width: 40px;
    height: 40px;
    background-color: var(--background-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-details {
    flex: 1;
}

.history-fare {
    text-align: right;
}

.status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--success-green);
    color: white;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--border-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: white;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.setting-item:hover {
    background-color: var(--background-gray);
}

.setting-item i:first-child {
    color: var(--text-secondary);
    width: 24px;
}

.setting-item span {
    flex: 1;
}

.setting-item i:last-child {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* Responsive */
@media (max-width: 600px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .app-header {
        padding: 12px 16px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    .bottom-nav {
        padding: 8px 0 12px 0;
    }
    
    .nav-item {
        min-width: 50px;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
}

@media (min-width: 601px) and (max-width: 1023px) {
    .app-container {
        max-width: 100%;
    }
    
    .app-title {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 100%;
    }
}

/* === ENHANCED INTERACTIVE FEATURES === */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-weight: 500;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

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

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Enhanced Taxi Card Interactions */
.taxi-card {
    position: relative;
    overflow: hidden;
}

.taxi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 160, 2, 0.1), transparent);
    transition: left 0.5s;
}

.taxi-card:hover::before {
    left: 100%;
}

/* Destination Input Enhanced */
#destination-input {
    position: relative;
}

#destination-input:focus {
    animation: inputGlow 2s infinite alternate;
}

@keyframes inputGlow {
    from {
        box-shadow: 0 0 5px rgba(251, 160, 2, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(251, 160, 2, 0.4);
    }
}

/* Dropdown Enhancement */
#destination-dropdown {
    animation: dropdownSlide 0.3s ease-out;
}

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

/* Loading States */
.loading-button {
    position: relative;
    pointer-events: none;
}

.loading-button::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Quick Actions Hover */
button[id^="quick-"]:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Map Preview */
.map-preview {
    transition: all 0.3s ease;
}

.map-preview:active {
    transform: scale(0.98);
}

/* Profile Avatar Animation */
.profile-avatar img,
#profile-avatar {
    transition: transform 0.3s ease;
}

.profile-avatar:hover img,
#profile-avatar:hover {
    transform: scale(1.05);
}

/* Settings Item Ripple */
.setting-item {
    position: relative;
    overflow: hidden;
}

.setting-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--primary-orange);
    transition: height 0.3s ease;
}

.setting-item:hover::after {
    height: 100%;
    top: 0;
}

/* Modal Animations */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideUp 0.3s ease-out;
}

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

/* Enhanced Button States */
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Refresh Button Spin */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Fare Estimate Pulse */
#fare-estimate {
    animation: fadeInUp 0.5s ease-out, pulse 2s infinite;
}

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

/* Star Rating Hover */
.rating-star {
    transition: all 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Status Badge Animation */
.status-badge {
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Payment Option Selected */
.payment-option.selected {
    animation: selectPulse 0.5s ease-out;
}

@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 160, 2, 0.7);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(251, 160, 2, 0);
    }
}

/* Route Card Delete Animation */
.route-card.deleting {
    animation: slideOutLeft 0.3s ease-out forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-orange) 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#theme-toggle:active {
    transform: scale(0.95);
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State Animations */
.empty-state {
    animation: fadeIn 0.5s ease-out;
}

.empty-state i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Search Input Clear Button */
#clear-destination {
    transition: all 0.2s ease;
}

#clear-destination:hover {
    color: var(--error-red);
    transform: scale(1.1);
}

#clear-destination:active {
    transform: scale(0.9);
}

/* Filter Button Active State */
.filter-btn:not(.active):hover {
    background: var(--selected-bg);
    color: var(--primary-orange);
}

/* Emergency SOS Button */
.menu-link[data-action="emergency"] {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
}

.menu-link[data-action="emergency"]:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, transparent 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.main-content {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bottom-nav,
    .app-header,
    .side-menu,
    #theme-toggle {
        display: none !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
}

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

/* Dark Mode Preparation */
@media (prefers-color-scheme: dark) {
    /* Will be implemented with theme toggle */
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 600px) {
    .toast {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    #theme-toggle {
        right: 10px;
        width: 44px;
        height: 44px;
    }
    
    .modal-content {
        max-width: calc(100% - 20px);
    }
}

/* === LANDSCAPE MODE === */
@media (max-height: 600px) and (orientation: landscape) {
    .app-header {
        padding: 8px 16px;
    }
    
    .bottom-nav {
        padding: 6px 0 10px 0;
    }
    
    .nav-item {
        padding: 6px 12px;
    }
    
    .nav-item span {
        display: none;
    }
}

/* === TABLET OPTIMIZATIONS === */
@media (min-width: 601px) and (max-width: 1023px) {
    .app-container {
        max-width: 100%;
    }
    
    .taxi-card {
        padding: 20px;
    }
    
    #destination-dropdown {
        max-height: 400px;
    }
}

/* === DESKTOP OPTIMIZATIONS === */
@media (min-width: 1024px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .taxi-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .taxi-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    /* Desktop-specific hover states */
    .card:hover {
        transform: translateY(-4px);
    }
    
    .nav-item:hover {
        transform: translateY(-2px);
    }
}

/* === ULTRA-WIDE SCREENS === */
@media (min-width: 1440px) {
    .main-content {
        max-width: 1400px;
    }
    
    .taxi-card {
        padding: 24px;
    }
}

