.results-container {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow-y: visible;
    z-index: 100;
    margin-top: 16px;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: none;
    margin: 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.ticket-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2196F3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ticket-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.ticket-item:hover::before {
    opacity: 1;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-reg {
    font-weight: 800;
    font-size: 1.3em;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.ticket-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    color: #666;
    font-size: 0.95em;
    align-items: center;
}

.ticket-card-header {
    background: rgba(33, 150, 243, 0.3);
    padding: 16px 20px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ticket-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ticket-card-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.car-park-info, .time-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.car-park-label, .time-label {
    font-size: 0.75em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.car-park-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    background: rgba(33, 150, 243, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.time-value {
    font-size: 1em;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}



.no-results {
    padding: 24px;
    text-align: center;
    color: #666;
    font-size: 1.1em;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 8px;
}

/* Loading state */
.results-container.loading {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.results-container.loading::after {
    content: 'Searching...';
    color: #666;
    font-size: 1.1em;
    animation: pulse 1.5s infinite;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.spinner.hidden {
    display: none;
}

/* Selected state */
.ticket-item.selected {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.ticket-item.selected::before {
    opacity: 1;
}

/* Validated state */
.ticket-item.validated {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.8);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
    animation: validationSuccess 1.5s ease-out;
}

.ticket-item.validated::before {
    opacity: 1;
    background: #4CAF50;
}

.ticket-item.validated .ticket-card-header {
    background: rgba(76, 175, 80, 0.3);
}

.ticket-item.validated .ticket-reg {
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* Success animation keyframes */
@keyframes validationSuccess {
    0% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    20% {
        transform: scale(1.05);
        background: linear-gradient(45deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.6), rgba(76, 175, 80, 0.3));
        border-color: rgba(76, 175, 80, 0.9);
        box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
    }
    40% {
        transform: scale(1.02);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(76, 175, 80, 0.7), rgba(76, 175, 80, 0.4));
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
    }
    60% {
        transform: scale(1.03);
        background: linear-gradient(225deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.6), rgba(76, 175, 80, 0.3));
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 10px 36px rgba(76, 175, 80, 0.4);
    }
    80% {
        transform: scale(1.01);
        background: rgba(76, 175, 80, 0.2);
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    }
    100% {
        transform: scale(1.02);
        background: rgba(76, 175, 80, 0.2);
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    }
}



/* Empty state */
.results-container:empty {
    display: none;
}



/* Remove unused styles */
.ticket-row {
    display: none;
}



/* Camera Interface Styles */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.camera-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.camera-button:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.camera-container.hidden {
    display: none;
}

.camera-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.close-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#cameraPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-button {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #2196F3;
    border: none;
    padding: 16px 32px;
    border-radius: 32px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.capture-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.capture-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Camera Container */
.camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.camera-container.hidden {
    display: none;
}

.camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frozen-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1001;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1002;
}

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

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

/* Toast Container */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    padding-top: calc(env(safe-area-inset-top, 16px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.error {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.8);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.toast.success {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.8);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.toast-message {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    font-size: 1.2rem;
    padding: 4px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Password Protection Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.password-modal.hidden {
    display: none;
}

.password-modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.password-modal-content h2 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.5rem;
}

.password-modal-content p {
    margin: 0 0 1.5rem 0;
    color: #ccc;
}

#passwordInput {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 1rem;
}

#passwordInput:focus {
    outline: none;
    border-color: #4CAF50;
}

.password-error {
    color: #ff4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.password-submit {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.password-submit:hover {
    background-color: #45a049;
}

.password-submit:active {
    transform: scale(0.98);
}

/* Hide app content until authenticated */
.app-content-hidden {
    display: none !important;
}

/* Video Background */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: blur(8px);
}

/* Ensure body is dark when app is hidden */
body:has(.app-content-hidden) {
    background-color: #000;
} 