/* Custom CSS for Zipgo Ride */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
	/* Offset for fixed-top navbar so content doesn't hide behind header */
	padding-top: 72px;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Booking Card */
.booking-card {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border: none;
    border-radius: 15px;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Cards */
.step-card {
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Form Elements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #000 100%);
    color: #ffffff;
}

footer h5, footer h6 {
    color: #ffffff !important;
    font-weight: 600;
}

footer p, footer span {
    color: #cccccc !important;
}

footer a {
    color: #cccccc !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--warning-color) !important;
}

footer .text-muted {
    color: #999999 !important;
}

footer .text-white {
    color: #ffffff !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #ffffff !important;
}

.app-links img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.app-links img:hover {
    transform: scale(1.05);
}

/* Enhanced Stats Cards */
.stats-card {
    border: none;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, var(--info-color), #6f42c1);
}

/* Enhanced Collapsible Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.sidebar:not(.collapsed) .sidebar-header {
    justify-content: space-between;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: #0a58ca;
    transform: scale(1.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    justify-content: flex-start;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    width: auto;
}

.sidebar-logo i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-logo i {
    margin-right: 0;
}

.logo-text {
    transition: all 0.3s ease;
    opacity: 1;
    width: auto;
    margin-left: 0;
    display: inline-block;
    white-space: nowrap;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
    transform: translateX(-20px);
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar-content {
    padding: 1rem;
}

.sidebar.collapsed .sidebar-content {
    padding: 1rem 0.25rem;
}

.driver-profile-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed .driver-profile-card {
    padding: 1rem 0.25rem;
    border-radius: 10px;
}

.driver-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .driver-avatar-large {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    border: 3px solid white;
}

.driver-name, .driver-id, .driver-rating {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .driver-name,
.sidebar.collapsed .driver-id,
.sidebar.collapsed .driver-rating {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar-nav {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    list-style: none;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-nav {
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
}

.sidebar-nav .nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.sidebar.collapsed .sidebar-nav .nav-link {
    padding: 0.75rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link:hover {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar.collapsed .sidebar-nav .nav-link:hover {
    transform: scale(1.05);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.nav-icon {
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    margin-left: 0.75rem;
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    margin: 0;
}

.sidebar-nav .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.3s ease, width 0.3s ease;
    margin-left: auto;
}

.sidebar.collapsed .sidebar-nav .badge {
    opacity: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-stats {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-stats {
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
}

.stats-title {
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed .stats-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.stat-item:last-child {
    border-bottom: none;
}

.sidebar.collapsed .stat-item {
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    margin: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    padding: 1rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background: #f8f9fa;
    width: calc(100vw - 280px);
    max-width: calc(100vw - 280px);
    overflow-x: hidden;
}

.sidebar.collapsed + .main-content {
    margin-left: 80px;
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
}

/* Fix horizontal scroll issue */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container-fluid {
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-left: 0.5rem;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .stats-value {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
        padding: 0.5rem;
    }
    
    .sidebar-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
    }
    
    .stats-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .booking-card {
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .main-content {
        padding: 0.25rem;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Ensure content clears the fixed header on desktop */
@media (min-width: 992px) {
	.hero-section { padding-top: 96px; }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .main-content {
        padding: 0.25rem;
    }
    
    .stats-value {
        font-size: 1.25rem;
    }
    
    .sidebar {
        width: 100vw;
    }
}

/* Passenger Profile Card */
.passenger-profile-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed .passenger-profile-card {
    padding: 1rem 0.25rem;
    border-radius: 10px;
}

.passenger-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color), #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .passenger-avatar-large {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    border: 3px solid white;
}

.passenger-name, .passenger-id, .passenger-rating {
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed .passenger-name,
.sidebar.collapsed .passenger-id,
.sidebar.collapsed .passenger-rating {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.passenger-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .booking-card {
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Advanced Map Styles */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container-small {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.leaflet-container {
    border-radius: inherit;
}

/* Advanced Booking Widget */
.booking-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.booking-step i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.booking-step span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.booking-step.active {
    opacity: 1;
}

.booking-step.active i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.booking-step.completed {
    opacity: 0.8;
}

.booking-step.completed i {
    background: var(--success-color);
    color: white;
}

/* Custom Map Markers */
.custom-marker {
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.pickup-marker .marker-content {
    color: var(--primary-color);
    font-size: 16px;
}

.destination-marker .marker-content {
    color: var(--danger-color);
    font-size: 16px;
}

.driver-marker .marker-content {
    color: var(--success-color);
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Real-time Status Indicators */
.status-indicator {
    position: relative;
    display: inline-block;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-indicator.offline::before {
    background: #dc3545;
}

.status-indicator.busy::before {
    background: #ffc107;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Advanced Cards */
.advanced-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.advanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.advanced-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

/* Location Input Styles */
.location-input {
    position: relative;
}

.location-input .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.location-input .suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.location-input .suggestion-item:hover {
    background-color: #f8f9fa;
}

.location-input .suggestion-item:last-child {
    border-bottom: none;
}

/* Ride Type Selection */
.ride-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.ride-type-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.ride-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ride-type-card.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.ride-type-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ride-type-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Driver Card */
.driver-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.driver-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.driver-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.driver-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Live Tracking */
.tracking-container {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tracking-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracking-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tracking-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 2s infinite;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    z-index: 9999;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.warning {
    border-left: 4px solid #ffc107;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .ride-type-selector {
        grid-template-columns: 1fr;
    }
    
    .booking-widget {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .advanced-card {
        border-radius: 15px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .advanced-card {
        background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
        color: white;
    }
    
    .location-input .suggestions {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .location-input .suggestion-item {
        color: white;
        border-color: #4a5568;
    }
    
    .location-input .suggestion-item:hover {
        background-color: #4a5568;
    }
}
