/* Enhanced FTS Travels Styles */

:root {
    /* Professional Color Palette */
    --primary: #1a237e;
    --primary-dark: #0d1551;
    --primary-light: #3949ab;
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    
    --secondary: #00897b;
    --secondary-dark: #00695c;
    --secondary-light: #26a69a;
    --secondary-gradient: linear-gradient(135deg, #00695c 0%, #26a69a 100%);
    
    --accent: #ff6f00;
    --accent-dark: #e65100;
    --accent-light: #ffa726;
    
    --success: #2e7d32;
    --success-light: #4caf50;
    --success-bg: rgba(46, 125, 50, 0.1);
    
    --danger: #c62828;
    --danger-light: #ef5350;
    --danger-bg: rgba(198, 40, 40, 0.1);
    
    --warning: #f9a825;
    --warning-light: #ffd54f;
    --warning-bg: rgba(249, 168, 37, 0.1);
    
    --info: #0277bd;
    --info-light: #29b6f6;
    --info-bg: rgba(2, 119, 189, 0.1);
    
    /* Neutral Colors */
    --dark: #212121;
    --dark-secondary: #424242;
    --gray: #757575;
    --gray-light: #bdbdbd;
    --gray-lighter: #e0e0e0;
    --light: #f5f5f5;
    --white: #ffffff;
    
    /* Theme Colors */
    --driver-primary: #1976d2;
    --driver-primary-dark: #0d47a1;
    --driver-accent: #42a5f5;
    
    --customer-primary: #388e3c;
    --customer-primary-dark: #1b5e20;
    --customer-accent: #66bb6a;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.24);
    
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 120px;
    --safe-area-inset-top: env(safe-area-inset-top, 0);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    direction: rtl;
    color: var(--dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    padding-top: 0;
}

body.ltr {
    direction: ltr;
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Driver Mode */
body.driver-mode {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Customer Mode */
body.customer-mode {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

/* Trip Status Bar */
.trip-status-bar {
    position: fixed;
    top: calc(10px + var(--safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: slideDown 0.3s ease-out;
    max-width: calc(100% - 40px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.trip-status-bar.hidden {
    transform: translate(-50%, -120%);
}

.trip-status-bar.active {
    background: var(--success-bg);
    border: 1px solid var(--success);
}

.trip-status-bar.no_show {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
}

.trip-status-bar.completed {
    background: var(--info-bg);
    border: 1px solid var(--info);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    animation: pulse 2s infinite;
}

.trip-status-bar.active .status-icon {
    background: var(--success);
}

.trip-status-bar.no_show .status-icon {
    background: var(--danger);
}

.trip-status-bar.completed .status-icon {
    background: var(--info);
}

.status-info {
    flex: 1;
}

.status-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.status-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
}

.status-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

/* Trip Status Toggle Button */
.trip-status-toggle {
    position: fixed;
    top: calc(10px + var(--safe-area-inset-top));
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    z-index: 101;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trip-status-toggle.show {
    display: flex;
}

.trip-status-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Professional Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes logoAnimation {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes checkmark {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.logo-animation {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoAnimation 2s ease-in-out;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    animation: pulseRing 2s ease-out infinite;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--gray-lighter);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: progressBar 2s ease-in-out;
}

.loading-text {
    font-size: 18px;
    color: var(--gray);
    font-weight: 500;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    animation: fadeIn 0.6s ease-out;
    padding-bottom: calc(100px + var(--safe-area-inset-bottom));
    padding-top: 15px;
}

.container.with-trip-status {
    padding-top: 70px;
}

/* Enhanced Header */
.header {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.driver-header {
    background: linear-gradient(135deg, var(--driver-primary) 0%, var(--driver-accent) 100%);
    color: var(--white);
}

.customer-header {
    background: linear-gradient(135deg, var(--customer-primary) 0%, var(--customer-accent) 100%);
    color: var(--white);
}

.header img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

.car-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-top: 10px;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-active i {
    animation: pulse 2s infinite;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn.emergency i { color: var(--danger); }
.quick-action-btn.info i { color: var(--info); }
.quick-action-btn.settings i { color: var(--gray); }

/* Chat Container */
.chat-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.chat-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.driver-chat-header {
    background: var(--driver-primary);
}

.customer-chat-header {
    background: var(--customer-primary);
}

.chat-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-header-title h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-header-title p {
    font-size: 14px;
    opacity: 0.9;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
}

.chat-status.online i {
    color: #4caf50;
    animation: pulse 2s infinite;
}

/* Communication Mode Badge */
.comm-mode-badge {
    background: var(--info-bg);
    border: 1px solid var(--info);
    border-radius: var(--radius);
    padding: 15px;
    margin: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comm-mode-badge.webhook {
    background: var(--warning-bg);
    border-color: var(--warning);
}

.comm-mode-badge i {
    font-size: 24px;
    color: var(--info);
}

.comm-mode-badge.webhook i {
    color: var(--warning);
}

.comm-mode-badge h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.comm-mode-badge p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* Chat Messages */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: slideUp 0.3s ease-out;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-break: break-word;
}

.chat-message.sent .chat-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.chat-message.received .chat-bubble {
    background: var(--gray-lighter);
    color: var(--dark);
    border-bottom-right-radius: 4px;
}

.chat-bubble-content {
    font-size: 15px;
    line-height: 1.4;
}

.chat-bubble-meta {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Location Content */
.location-content {
    text-align: center;
}

.location-text {
    font-weight: 600;
    margin-bottom: 10px;
}

.location-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.chat-message.sent .location-button {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.location-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Chat Bubble Image */
.chat-bubble-image {
    width: 100%;
    max-width: 200px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.chat-bubble-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Voice Message */
.voice-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-message i {
    font-size: 20px;
}

.voice-message audio {
    max-width: 200px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    padding: 12px 18px;
    background: var(--gray-lighter);
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    width: fit-content;
    margin-bottom: 15px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingPulse 1.5s ease-in-out infinite;
}

@keyframes typingPulse {
    0%, 80%, 100% { opacity: 0.5; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Enhanced Chat Input */
.chat-input-container {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-lighter);
}

.chat-input-wrapper {
    position: relative;
}

.chat-input-field {
    width: 100%;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    transition: var(--transition);
    background: #f8f9fa;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.send-button {
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.send-button:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
}

/* Chat Actions - Bottom Position */
.chat-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    color: var(--gray);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 20px;
}

.action-btn.location i { color: var(--info); }
.action-btn.image i { color: var(--success); }
.action-btn.voice i { color: var(--warning); }

.action-btn:hover i {
    color: var(--white);
}

.action-btn.recording {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
    animation: pulse 1s infinite;
}

/* Message Select */
.message-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
}

.message-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* Upload Preview */
.image-upload-preview,
.voice-recording-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: var(--radius);
    margin-top: 10px;
}

.image-upload-preview.active,
.voice-recording-indicator[style*="flex"] {
    display: flex;
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.preview-loading {
    font-size: 14px;
    color: var(--gray);
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* Sections */
.section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-lighter);
}

.section-header:hover {
    background: var(--light);
}

.section-header.active {
    background: var(--primary);
    color: var(--white);
    border-bottom-color: transparent;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.driver-icon {
    background: var(--driver-primary);
}

.customer-icon {
    background: var(--customer-primary);
}

.section-header.active .section-icon {
    background: var(--white);
    color: var(--primary);
}

.section-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: var(--gray);
}

.section-header.active .section-toggle {
    transform: rotate(180deg);
    color: var(--white);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section-content.active {
    max-height: 1000px;
    padding: 20px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--gray-lighter);
    transform: translateX(-3px);
}

.info-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* Pax Details */
.pax-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pax-badge {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
}

.pax-total {
    background: var(--success);
}

/* Driver Profile */
.driver-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.driver-avatar {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: var(--shadow-md);
}

.driver-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.driver-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}

.driver-rating i {
    color: var(--gray-light);
    font-size: 16px;
    transition: var(--transition);
}

.driver-rating i.active {
    color: #ffc107;
}

.driver-car {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
}

/* Rate Driver Section */
.rate-driver-section {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    margin-top: 15px;
}

.rate-driver-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star {
    font-size: 28px;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.star:hover,
.star.active {
    color: #ffc107;
    transform: scale(1.1);
}

/* Map Section */
.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-control-btn {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.map-control-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.map-wrapper {
    position: relative;
}

.map-container {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

#map {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 14px;
}

.location-btn {
    margin-top: 15px;
}

.location-btn.sharing {
    background: var(--danger);
}

.location-btn.sharing:hover {
    background: var(--danger-light);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trip-completed-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--success);
    font-size: 18px;
    font-weight: 600;
}

.trip-completed-msg i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* Trip Action Button */
.trip-action-btn {
    position: fixed;
    bottom: calc(30px + var(--safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    background: var(--danger-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trip-action-btn:hover {
    transform: translate(-50%, -3px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
    color: var(--dark);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    background: var(--gray-lighter);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Footer */
.footer {
    margin-top: 50px;
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    color: #f8f9fa;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    padding-top: 80px;
}

.footer-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius);
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-light);
}

.contact-link.whatsapp:hover {
    color: #25d366;
}

.contact-type {
    font-size: 12px;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.footer-bottom p {
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.ai-team {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[style*="flex"] {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: zoomIn 0.3s ease-out;
    box-shadow: var(--shadow-xl);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-lg);
}

.modal-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.modal-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
}

.modal p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* Success Animation */
.success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    background: var(--success);
    box-shadow: var(--shadow-lg);
}

.icon-line {
    height: 4px;
    background: var(--white);
    display: block;
    border-radius: 2px;
    position: absolute;
}

.icon-line.line-tip {
    width: 20px;
    left: 20px;
    top: 39px;
    transform: rotate(45deg);
    animation: checkmark 0.3s 0.3s ease-out forwards;
}

.icon-line.line-long {
    width: 36px;
    right: 15px;
    top: 36px;
    transform: rotate(-45deg);
    animation: checkmark 0.3s 0.5s ease-out forwards;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.image-modal[style*="flex"] {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.image-modal-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
}

.image-modal-controls button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.image-modal-controls button:hover {
    transform: scale(1.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.3s ease-out;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transition: var(--transition);
    border-right: 4px solid var(--success);
}

.toast.error {
    border-right-color: var(--danger);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: var(--success);
}

.toast.error .toast-icon {
    background: var(--danger);
}

.toast-content {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--dark);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    animation: slideUp 0.3s ease-out;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-left: 50px;
}

.alert::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success-dark);
}

.alert-success::before {
    content: '\f00c';
    color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger-dark);
}

.alert-error::before {
    content: '\f00d';
    color: var(--danger);
}

/* Link Expired Overlay */
.link-expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.link-expired-overlay.active {
    display: flex;
}

.link-expired-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: zoomIn 0.3s ease-out;
}

.link-expired-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 50px;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-lg);
}

#link-expired-title {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 15px;
}

#link-expired-message {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.password-instruction {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    background: var(--light);
    transition: var(--transition);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.support-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.support-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* No Show Modal */
.no-show-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.no-show-modal.active {
    display: flex;
}

.no-show-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.no-show-header {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: var(--white);
    padding: 25px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.no-show-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.no-show-header p {
    font-size: 14px;
    opacity: 0.9;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.no-show-body {
    padding: 25px;
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 18px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--gray-lighter);
}

.step-item:last-child::after {
    display: none;
}

.step-item.active::after {
    background: var(--success);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gray-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
}

.step-item.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.step-item.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-item span {
    font-size: 12px;
    color: var(--gray);
}

.step-item.active span {
    color: var(--dark);
    font-weight: 600;
}

/* No Show Steps */
.no-show-step {
    display: block;
    transition: var(--transition);
}

.no-show-step.hidden {
    display: none;
}

.no-show-step h4 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Camera View */
.camera-view {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

#camera-video {
    width: 100%;
    height: auto;
    display: block;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.camera-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    border: 3px solid var(--white);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1000px rgba(0,0,0,0.5);
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.camera-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.camera-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.camera-btn.capture {
    width: 70px;
    height: 70px;
    font-size: 28px;
    background: var(--danger);
    border-color: var(--danger);
}

/* Captured Preview */
.captured-preview {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.captured-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.captured-preview .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

/* Pax Selection */
.select-all-container {
    text-align: center;
    margin-bottom: 20px;
}

.pax-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.pax-selector {
    background: var(--light);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.pax-selector.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.pax-selector-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary);
}

.pax-selector.selected .pax-selector-icon {
    color: var(--white);
}

.pax-selector h5 {
    font-size: 14px;
    margin-bottom: 10px;
}

.pax-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pax-selector.selected .counter-btn {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    color: var(--white);
}

.counter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.counter-value {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
}

/* Preview */
.preview-summary {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.preview-section {
    margin-bottom: 20px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section h5 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-image {
    width: 100%;
    border-radius: var(--radius-sm);
}

.preview-pax-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.preview-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.preview-item-value {
    font-size: 16px;
    font-weight: 700;
}

/* Countdown */
.countdown-container {
    background: var(--warning-bg);
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    --progress: 0%;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-icon {
    font-size: 32px;
    color: var(--warning);
}

.countdown-timer {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
}

.countdown-text {
    font-size: 14px;
    color: var(--gray);
}

.countdown-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-lighter);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.countdown-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: var(--warning);
    transition: width 1s linear;
}

/* Utilities */
.hidden {
    display: none !important;
}

.file-input {
    display: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .container.with-trip-status {
        padding-top: 60px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .chat-messages {
        height: 350px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .trip-status-bar {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .status-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .status-info h3 {
        font-size: 12px;
    }
    
    .status-info p {
        font-size: 11px;
    }
    
    .status-time {
        font-size: 14px;
    }
}

/* iPhone X+ Safe Areas */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .trip-action-btn {
        bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    body {
        background: var(--white);
    }
    
    .header,
    .quick-actions,
    .chat-input-container,
    .footer,
    .loading-overlay,
    .modal,
    .toast-container,
    .trip-status-bar,
    .trip-status-toggle,
    .trip-action-btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid var(--gray-lighter);
        margin-bottom: 10px;
    }
    
    .section-content {
        display: block !important;
        max-height: none !important;
        padding: 15px !important;
    }
}

/* Animations for Staggered Load */
.animate-in {
    animation: fadeIn 0.6s ease-out both;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* Performance Optimizations */
.chat-messages {
    will-change: scroll-position;
}

.chat-message {
    contain: layout style;
}

.chat-bubble {
    contain: layout style paint;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Prepared for future dark mode implementation */
}