/* BLUEDISPLAY Font */
@font-face {
    font-family: 'BLUEDISPLAY';
    src: url('backend/fonts/BLUEDISPLAY-REGULAR.woff2') format('woff2'),
         url('backend/fonts/BLUEDISPLAY-REGULAR.woff') format('woff'),
         url('backend/fonts/BLUEDISPLAY-REGULAR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Universal box-sizing */
* {
    box-sizing: border-box;
}

/* Reset and base styles */
html {
    height: 100%;
    overflow: hidden;
    position: relative;
}

body {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #000714 0%, #061E5C 100%);
    height: 100vh;
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    justify-content: center;
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 100px; /* Account for fixed back button */
    position: relative;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
}

/* Animated background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 1, 67, 0.1) 0%, rgba(27, 86, 253, 0.1) 100%);
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -1;
}

/* SVG overlay pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/backgroundoverlay1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Container */
.container {
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 20, 59, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 480px; /* Consistent width across all screens */
    min-width: 480px;
    max-width: 480px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

/* Screen management */
.screen {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.screen.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Force hide all screens initially */
#pin-screen:not(.active),
#plate-screen:not(.active),
#results-screen:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Typography */
h1 {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #00143B 0%, #1B56FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Header with back button */
.header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 30px;
    width: 100%;
    gap: 20px;
}

.header h1 {
    margin: 0;
    text-align: center;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.admin-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #16A34A;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: center;
    margin-top: 10px;
}

.admin-button:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #15803D;
}

.admin-button:active {
    box-shadow: none;
}

.logout-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #DC2626;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logout-button:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #B91C1C;
}

.logout-button:active {
    box-shadow: none;
}

.back-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Highest z-index to stay on top */
    transform: none;
    transition: none;
    will-change: auto;
    pointer-events: auto; /* Ensure it's clickable */
}

.back-button.hidden {
    display: none !important;
}

.back-button button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #00143B;
    color: #F8F8F8;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 480px; /* Match container width */
    min-width: 480px;
    max-width: 480px;
    transform: none;
}

.back-button:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.back-button:active {
    transform: translateY(0);
}

/* PIN Input */
.pin-input-container {
    position: relative;
    cursor: pointer;
    padding: 20px;
    border-radius: 12px;
    background: rgba(27, 86, 253, 0.05);
    border: 2px dashed rgba(27, 86, 253, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-input-container:hover {
    background: rgba(27, 86, 253, 0.1);
    border-color: rgba(27, 86, 253, 0.4);
}

.pin-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.pin-dot {
    width: 24px;
    height: 24px;
    border: 3px solid #C3DCFF;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(10px);
}

.pin-dot.filled {
    background: #00143B;
    border-color: #1B56FD;
    transform: scale(1.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pin-dot.filled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #F8F8F8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pin-hint {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pin-input-container:hover .pin-hint {
    opacity: 1;
    color: #1B56FD;
}

/* Login Logo */
.login-logo {
    width: 250px;
    height: auto;
    margin: 0 auto 32px auto;
    display: block;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #00143B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.text-input {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 16px 20px;
    border: 2px solid #C3DCFF;
    border-radius: 10px;
    font-size: 16px;
    color: #00143B;
    background: rgba(248, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-input:focus {
    outline: none;
    border-color: #1B56FD;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 86, 253, 0.1);
}

.text-input::placeholder {
    color: rgba(0, 20, 59, 0.4);
}

/* License Plate Input */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plate-input {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 18px 24px;
    border: 2px solid #C3DCFF;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    letter-spacing: 2px;
    color: #00143B;
}

.plate-input:focus {
    outline: none;
    border-color: #1B56FD;
    background: rgba(248, 248, 248, 1);
    box-shadow: 0 0 0 3px rgba(27, 86, 253, 0.1);
}

.submit-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #00143B;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-button:hover {
    background: #001A4D;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submit-button:active {
    box-shadow: 0 3px 10px rgba(27, 86, 253, 0.2);
}

/* Results */
.results-content {
    text-align: left;
}

/* Mobile: Stack columns vertically */
.results-left-column,
.results-right-column {
    width: 100%;
}

/* Desktop: Two-column grid layout */
@media (min-width: 769px) {
    .results-content {
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 24px;
        align-items: start;
    }
    
    .results-left-column {
        width: auto;
    }
    
    .results-right-column {
        width: auto;
    }
}

.customer-info {
    background: rgba(0, 20, 59, 0.08);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(27, 86, 253, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.customer-name {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #00143B;
    margin-bottom: 16px;
    margin-top: 8px;
    padding-right: 80px; /* Make space for booking code */
    line-height: 1.2; /* Ensure consistent line height */
}

.booking-code {
    position: absolute;
    top: 8px;
    right: 16px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #1B56FD;
    font-size: 14px;
    background: rgba(27, 86, 253, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2; /* Match customer name line height */
    display: flex;
    align-items: baseline; /* Align to text baseline */
}

.rental-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.date-label {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #00143B;
    font-size: 14px;
}

.date-value {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: #00143B;
    font-size: 14px;
}

.status-checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    background: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(10px);
}

.status-item span {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #00143B;
    font-size: 16px;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.check-icon.active {
    background: #22C55E;
    color: white;
}

.check-icon.inactive {
    background: #EF4444;
    color: white;
}

/* Location Section */
.location-section {
    margin: 24px 0;
    padding: 20px;
    background: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(248, 248, 248, 0.2);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.location-icon {
    font-size: 24px;
}

.location-title {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #00143B;
    font-size: 18px;
}

.map-container {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.location-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 20, 59, 0.9), rgba(0, 20, 59, 0.5));
    padding: 12px 16px;
    text-align: center;
    transition: background 0.2s ease;
}

.map-container:hover .map-overlay {
    background: linear-gradient(to top, rgba(27, 86, 253, 0.9), rgba(27, 86, 253, 0.6));
}

.map-overlay-text {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.location-info {
    margin-top: 12px;
    text-align: center;
}

.location-timestamp {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

.location-unavailable {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.location-error {
    text-align: center;
    padding: 16px;
}

.location-error p {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 59, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 20, 59, 0.15);
    border: 1px solid rgba(248, 248, 248, 0.2);
    width: 400px; /* Fixed width to match container */
    min-width: 400px; /* Ensure minimum width */
    max-width: 400px; /* Ensure maximum width */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #C3DCFF;
    border-top: 4px solid #1B56FD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-spinner p {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

/* Error messages */
.error-message {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #FD6112;
    background: linear-gradient(to bottom, rgba(253, 97, 18, 0.1) 0%, rgba(253, 97, 18, 0.05) 100%);
    border: 1px solid rgba(253, 97, 18, 0.2);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.error-message.hidden {
    display: none;
}

/* Admin Panel Styles */
.admin-content {
    text-align: left;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section h2 {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #00143B 0%, #1B56FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form select {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 16px 20px;
    border: 2px solid #C3DCFF;
    border-radius: 10px;
    font-size: 16px;
    color: #00143B;
    background: rgba(248, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-form select:focus {
    outline: none;
    border-color: #1B56FD;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 86, 253, 0.1);
}

.success-message {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #22C55E;
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.success-message.hidden {
    display: none;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Hide desktop title on mobile, show mobile title */
.desktop-title {
    display: none !important;
}

.mobile-title {
    display: block !important;
}

/* Mobile keyboard handling */
@media (max-width: 480px) {
    body {
        padding: 16px;
        padding-bottom: 100px; /* Keep bottom padding for back button */
        min-height: 100vh; /* Ensure minimum height */
    }
    
    /* When keyboard is likely open, adjust layout */
    body.keyboard-open {
        align-items: flex-start; /* Move content to top when keyboard is open */
        padding-top: 20px; /* Reduce top padding */
    }
    
    .container {
        padding: 32px 24px;
        width: calc(100vw - 32px); /* Full width minus padding */
        min-width: 320px; /* Minimum width on mobile */
        max-width: 400px; /* Maximum width */
        border-radius: 14px;
        margin: 0 auto; /* Center horizontally */
    }

    /* Ensure input field is always visible */
    .plate-input {
        font-size: 18px;
        padding: 16px 20px;
        position: relative;
        z-index: 10; /* Ensure it's above other elements */
    }
    
    /* Adjust container when keyboard is open */
    body.keyboard-open .container {
        margin-top: 0; /* Remove top margin when keyboard is open */
    }
    
    .loading-spinner {
        padding: 32px 24px;
        width: calc(100vw - 32px); /* Full width minus padding */
        min-width: 320px; /* Minimum width on mobile */
        max-width: 400px; /* Maximum width */
        border-radius: 14px;
        margin: 0 auto; /* Center horizontally */
    }

    h1 {
        font-size: 28px;
        font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    .header h1 {
        font-size: 24px;
        font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    .pin-dots {
        gap: 16px;
    }
    
    .pin-dot {
        width: 22px;
        height: 22px;
    }
    
    /* Location section mobile adjustments */
    .location-section {
        margin: 20px 0;
        padding: 16px;
    }
    
    .location-title {
        font-size: 16px;
    }
    
    .location-icon {
        font-size: 20px;
    }
    
    .map-overlay-text {
        font-size: 13px;
    }
    
    .location-timestamp {
        font-size: 12px;
    }
    
    .submit-button {
        font-size: 16px;
        padding: 16px 28px;
    }
    
    .back-button button {
        width: calc(100vw - 32px); /* Full width minus padding */
        min-width: 320px; /* Minimum width on mobile */
        max-width: 400px; /* Maximum width */
        margin: 0 auto; /* Center horizontally */
    }
}

/* Session expired notification */
.session-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 59, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.notification-content {
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 20, 59, 0.2);
    border: 1px solid rgba(248, 248, 248, 0.2);
    max-width: 400px;
    width: 100%;
}

.notification-content h3 {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 16px;
    background: linear-gradient(to bottom, #00143B 0%, #1B56FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-content p {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #00143B;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: 0.8;
}

.notification-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #00143B;
    color: #F8F8F8;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.notification-button:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #001A4D;
}

/* Mobile optimizations for notification */
@media (max-width: 480px) {
    .session-notification {
        padding: 16px;
    }
    
    .notification-content {
        padding: 24px;
        border-radius: 14px;
    }
    
    .notification-content h3 {
        font-size: 20px;
    }
    
    .notification-content p {
        font-size: 14px;
    }
    
    .notification-button {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Session status indicator */
.session-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(34, 197, 94, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.2);
    animation: slideInRight 0.3s ease;
}

.indicator-text {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile optimizations for session indicator */
@media (max-width: 480px) {
    .session-indicator {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .indicator-text {
        font-size: 11px;
    }
    
    .indicator-dot {
        width: 6px;
        height: 6px;
    }
}

/* Desktop optimizations */
@media (min-width: 768px) {
    body {
        padding: 0;
        overflow-y: auto;
        align-items: center; /* Center content vertically */
        height: 100%;
        min-height: 100vh;
    }
    
    /* Only results screen should align to top */
    #results-screen {
        align-self: flex-start;
    }
    
    /* Hide mobile title, show desktop title */
    .mobile-title {
        display: none !important;
    }
    
    .desktop-title {
        display: block !important;
        color: #FFFFFF !important;
        text-shadow: 0 2px 12px rgba(0, 20, 59, 0.5) !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #FFFFFF !important;
        background-clip: unset !important;
    }
    
    /* Disable background animation on desktop */
    body::before {
        animation: none !important;
        transform: none !important;
    }
    
    /* Disable screen fade-in animation on desktop */
    .screen.active {
        animation: none !important;
    }
    
    /* Hide session indicator on desktop - not needed */
    .session-indicator {
        display: none !important;
    }
    
    /* Prevent any layout shifts */
    * {
        transition-property: color, background-color, border-color, opacity !important;
        transition-duration: 0.2s !important;
    }
    
    /* No transform or size transitions */
    .container,
    .customer-info,
    .status-checks,
    .location-section {
        transition: none !important;
        will-change: auto !important;
    }
    
    /* Desktop back button - top left corner */
    .back-button {
        position: fixed;
        top: 24px;
        left: 24px;
        bottom: auto;
        right: auto;
        background: rgba(248, 248, 248, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        padding: 0;
        z-index: 10000;
        box-shadow: 0 2px 8px rgba(0, 20, 59, 0.08);
    }

    .back-button button {
        width: auto;
        min-width: auto;
        max-width: unset;
        font-size: 16px;
        padding: 12px 24px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Two-column layout for results screen */
    #results-screen .container,
    #tesla-results-screen .container {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        padding: 80px 40px 40px 40px;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        margin: 0;
        transition: none;
        transform: none;
    }
    
    #results-screen .container:hover,
    #tesla-results-screen .container:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Disable hover effects on all cards in results screen */
    #results-screen .customer-info:hover,
    #results-screen .status-checks:hover,
    #results-screen .location-section:hover,
    #tesla-results-screen .vehicle-info:hover,
    #tesla-results-screen .tesla-drivers-section:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 20, 59, 0.06);
    }

    #results-screen .header,
    #tesla-results-screen .header {
        margin-bottom: 32px;
        text-align: left;
        padding-left: 0;
    }
    
    #results-screen.screen .header h1,
    #results-screen.screen h1,
    #results-screen .header h1,
    #results-screen h1,
    #tesla-results-screen.screen .header h1,
    #tesla-results-screen.screen h1,
    #tesla-results-screen .header h1,
    #tesla-results-screen h1 {
        text-align: left;
        font-size: 38px;
        margin: 0;
        color: #FFFFFF !important;
        text-shadow: 0 2px 12px rgba(0, 20, 59, 0.4) !important;
        font-weight: 600 !important;
    }
    
    #results-screen .results-content {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 24px;
        align-items: start;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    /* Left column - Customer info and status */
    #results-screen .customer-info,
    #results-screen .status-checks,
    #tesla-results-screen .vehicle-info,
    #tesla-results-screen .tesla-drivers-section {
        background: rgba(248, 248, 248, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 20, 59, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    #results-screen .customer-info,
    #tesla-results-screen .vehicle-info {
        padding: 28px;
        margin-bottom: 0;
    }
    
    #results-screen .status-checks,
    #tesla-results-screen .tesla-drivers-section {
        padding: 20px;
        margin-top: 16px;
    }
    
    /* Right column - Map (controlled height) */
    #results-screen .location-section,
    #tesla-results-screen #tesla-location-section {
        background: rgba(248, 248, 248, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 20, 59, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 28px;
        margin: 0;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    #results-screen .location-section.location-unavailable,
    #tesla-results-screen #tesla-location-section.location-unavailable {
        min-height: 400px;
        justify-content: center;
    }
    
    #results-screen .map-container,
    #tesla-results-screen .map-container {
        display: flex;
        border-radius: 16px;
        overflow: hidden;
        height: 400px;
    }
    
    #results-screen .location-map,
    #tesla-results-screen .location-map {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    #results-screen .location-header,
    #tesla-results-screen .location-header {
        margin-bottom: 20px;
    }
    
    #results-screen .location-info,
    #tesla-results-screen .location-info {
        margin-top: 16px;
    }
    
    /* Single column container for other screens */
    #login-screen .container,
    #pin-screen .container,
    #plate-screen .container {
        width: 520px; /* Slightly larger on tablet */
        min-width: 520px;
        max-width: 520px;
        padding: 44px;
        border-radius: 16px;
        margin: 0 auto;
    }
    
    /* Larger typography */
    h1 {
        font-size: 36px;
        margin-bottom: 32px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    /* Consistent inputs */
    .pin-input {
        font-size: 24px;
        padding: 18px;
    }
    
    .plate-input {
        font-size: 20px;
        padding: 18px 24px;
        border-radius: 10px;
    }

    .submit-button {
        font-size: 16px;
        padding: 16px 32px;
        border-radius: 10px;
    }
    
    /* Larger PIN dots */
    .pin-dots {
        gap: 24px;
        margin-top: 32px;
    }
    
    .pin-dot {
        width: 28px;
        height: 28px;
        border: 4px solid #C3DCFF;
    }
    
    /* Customer info */
    .customer-name {
        font-size: 20px;
        padding-right: 100px;
    }
    
    .booking-code {
        font-size: 15px;
        padding: 6px 12px;
        border-radius: 8px;
        top: 8px;
        right: 20px;
    }
    
    .date-label {
        font-size: 15px;
    }
    
    .date-value {
        font-size: 15px;
    }
    
    /* Location section typography */
    .location-title {
        font-size: 22px;
    }
    
    .location-icon {
        font-size: 26px;
    }
    
    .map-overlay {
        padding: 14px 18px;
    }
    
    .map-overlay-text {
        font-size: 16px;
        font-weight: 600;
    }
    
    .location-timestamp {
        font-size: 14px;
    }
    
    .location-error p {
        font-size: 16px;
    }
    
    /* Status checks */
    .status-item {
        padding: 18px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .status-item:last-child {
        margin-bottom: 0;
    }
    
    .status-item span {
        font-size: 16px;
    }
    
    .check-icon {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }
    
    /* Loading spinner */
    .loading-spinner {
        width: 500px;
        min-width: 500px;
        max-width: 500px;
        padding: 48px;
        border-radius: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .spinner {
        width: 56px;
        height: 56px;
        border: 5px solid #C3DCFF;
        border-top: 5px solid #1B56FD;
    }
    
    .loading-spinner p {
        font-size: 18px;
        margin-top: 24px;
    }
    
    /* Error messages */
    .error-message {
        font-size: 15px;
        padding: 14px 20px;
        margin-top: 20px;
        border-radius: 10px;
    }
    
    /* Session notification */
    .notification-content {
        width: 500px;
        max-width: 500px;
        padding: 40px;
        border-radius: 16px;
    }

    .notification-content h3 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .notification-content p {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .notification-button {
        font-size: 18px;
        padding: 16px 40px;
        border-radius: 10px;
    }
}

/* Large desktop optimizations (1440px+) */
@media (min-width: 1440px) {
    /* Even wider for large screens */
    #results-screen .results-content {
        grid-template-columns: 450px 1fr;
        gap: 32px;
    }
    
    #results-screen .customer-info,
    #tesla-results-screen .vehicle-info {
        padding: 32px;
    }
    
    #results-screen .status-checks,
    #tesla-results-screen .tesla-drivers-section {
        padding: 24px;
        margin-top: 20px;
    }
    
    #results-screen .location-section,
    #tesla-results-screen #tesla-location-section {
        padding: 32px;
    }
    
    #results-screen .map-container,
    #tesla-results-screen .map-container {
        height: 450px;
    }
    
    /* Other screens - consistent sizing */
    #login-screen .container,
    #pin-screen .container,
    #plate-screen .container {
        width: 560px; /* Maximum size for large screens */
        min-width: 560px;
        max-width: 560px;
        padding: 48px;
        border-radius: 16px;
        margin: 0 auto;
    }

    h1 {
        font-size: 38px;
        margin-bottom: 36px;
    }
    
    .header h1 {
        font-size: 38px;
    }
    
    #results-screen.screen .header h1,
    #results-screen.screen h1,
    #results-screen .header h1,
    #results-screen h1 {
        font-size: 44px;
        color: #FFFFFF !important;
        text-shadow: 0 2px 12px rgba(0, 20, 59, 0.4) !important;
        font-weight: 600 !important;
    }
    
    .plate-input {
        font-size: 20px;
        padding: 18px 24px;
    }
    
    .submit-button {
        font-size: 16px;
        padding: 16px 32px;
    }
    
    .customer-name {
        font-size: 22px;
    }
    
    .booking-code {
        font-size: 16px;
    }
    
    .location-title {
        font-size: 24px;
    }
    
    .location-icon {
        font-size: 28px;
    }
    
    .status-item {
        padding: 20px;
    }
    
    .status-item span {
        font-size: 17px;
    }
    
    .loading-spinner {
        width: 560px;
        min-width: 560px;
        max-width: 560px;
        padding: 48px;
        margin: 0 auto;
    }
    
    .notification-content {
        width: 600px;
        max-width: 600px;
        padding: 48px;
    }
}

/* Ultra-wide desktop (1920px+) */
@media (min-width: 1920px) {
    #results-screen .results-content {
        grid-template-columns: 500px 1fr;
        gap: 40px;
    }
    
    #results-screen .map-container,
    #tesla-results-screen .map-container {
        height: 500px;
    }
}

/* =============================================
   ADMIN PANEL ENHANCEMENTS
   ============================================= */

/* Admin panel container adjustments */
#admin-screen .container {
    width: 90%;
    max-width: 1200px;
    min-width: 400px;
    padding: 40px;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 20, 59, 0.1);
}

.admin-tab {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #00143B;
    border: none;
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.3px;
}

.admin-tab:hover {
    background: rgba(27, 86, 253, 0.05);
    color: #1B56FD;
}

.admin-tab.active {
    background: #00143B;
    color: #FFFFFF;
    border-bottom-color: #00143B;
}

/* Admin sections */
.admin-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', sans-serif;
    color: #00143B;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
    text-align: left;
}

/* Users table container */
.users-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 20, 59, 0.08);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.users-table thead {
    background: #00143B;
    color: white;
}

.users-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.users-table tbody tr {
    border-bottom: 1px solid rgba(0, 20, 59, 0.08);
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(27, 86, 253, 0.03);
}

.users-table tbody tr.inactive-row {
    background: rgba(239, 68, 68, 0.05);
    opacity: 0.7;
}

.users-table tbody td {
    padding: 16px;
    font-size: 14px;
    color: #00143B;
}

.users-table tbody tr:last-child {
    border-bottom: none;
}

.no-users {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.role-badge.role-admin {
    background: #D97706;
    color: white;
}

.role-badge.role-viewer {
    background: #4F46E5;
    color: white;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-badge.status-active {
    background: #16A34A;
    color: white;
}

.status-badge.status-inactive {
    background: #DC2626;
    color: white;
}

/* Action buttons */
.actions-cell {
    white-space: nowrap;
}

.action-btn {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
    letter-spacing: 0.3px;
}

.action-btn:last-child {
    margin-right: 0;
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.edit-btn {
    background: #1B56FD;
    color: white;
}

.edit-btn:hover:not(:disabled) {
    background: #1448D4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.deactivate-btn {
    background: #D97706;
    color: white;
}

.deactivate-btn:hover:not(:disabled) {
    background: #B45309;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.activate-btn {
    background: #16A34A;
    color: white;
}

.activate-btn:hover:not(:disabled) {
    background: #15803D;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.delete-btn {
    background: #DC2626;
    color: white;
}

.delete-btn:hover:not(:disabled) {
    background: #B91C1C;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 59, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(248, 248, 248, 0.98);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 20, 59, 0.2);
    width: 90%;
    max-width: 480px; /* Match container size */
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid rgba(0, 20, 59, 0.1);
}

.modal-header h2 {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', sans-serif;
    color: #00143B;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    border-top: 2px solid rgba(0, 20, 59, 0.1);
}

.cancel-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(0, 20, 59, 0.08);
    color: #00143B;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cancel-button:hover {
    background: rgba(0, 20, 59, 0.15);
}

.danger-button {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #DC2626;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
}

.danger-button:hover {
    background: #B91C1C;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Responsive design for admin panel */
@media (max-width: 768px) {
    #admin-screen .container {
        width: 95%;
        padding: 20px;
    }
    
    .users-table {
        font-size: 12px;
    }
    
    .users-table thead th,
    .users-table tbody td {
        padding: 10px 8px;
    }
    
    .action-btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    .action-btn:last-child {
        margin-bottom: 0;
    }
    
    .actions-cell {
        white-space: normal;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    #admin-screen .container {
        width: 90%;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* =============================================
   VEHICLE INFO (used by Tesla results)
   ============================================= */

/* Input wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* Vehicle results styling */
.vehicle-info {
    background: rgba(248, 248, 248, 0.95);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 20, 59, 0.08);
}

.vehicle-name {
    font-family: 'BLUEDISPLAY', 'Host Grotesk', sans-serif;
    font-size: 28px;
    color: #00143B;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #00143B 0%, #1B56FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.vehicle-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 20, 59, 0.1);
}

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

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: #00143B;
    font-size: 14px;
}

/* Mobile optimizations for vehicle info */
@media (max-width: 768px) {
    .vehicle-name {
        font-size: 22px;
    }

    .vehicle-details {
        gap: 8px;
    }

    .detail-label,
    .detail-value {
        font-size: 13px;
    }
}

/* =============================================
   USER MENU (FIXED TOP-RIGHT)
   ============================================= */

.user-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
}

.user-menu.hidden {
    display: none;
}

.user-menu-button {
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 20, 59, 0.1);
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.user-menu-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #00143B;
    white-space: nowrap;
}

.dropdown-icon {
    font-size: 12px;
    color: #6B7280;
    transition: transform 0.2s ease;
}

.user-menu-button.active .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 4px 16px rgba(0, 20, 59, 0.15);
    animation: dropdownFadeIn 0.2s ease;
}

.user-dropdown.hidden {
    display: none;
}

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

.user-dropdown-header {
    padding: 12px 16px;
}

.user-email-display {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(0, 20, 59, 0.1);
    margin: 8px 0;
}

.user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(27, 86, 253, 0.08);
}

.user-dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.08);
}

.user-dropdown-item.logout-item:hover .item-icon,
.user-dropdown-item.logout-item:hover .item-text {
    color: #EF4444;
}

.item-icon {
    font-size: 18px;
    color: #1B56FD;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-text {
    font-size: 14px;
    font-weight: 600;
    color: #00143B;
}

/* Mobile adjustments for user menu */
@media (max-width: 768px) {
    .user-menu {
        top: 16px;
        right: 16px;
    }
    
    .user-menu-button {
        padding: 10px 16px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-dropdown {
        min-width: 200px;
    }
}
