/* Valet Parking - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body { font-family: 'Inter', sans-serif; }

/* Signature canvas */
.signature-canvas {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    touch-action: none;
    cursor: crosshair;
}
.signature-canvas:hover { border-color: #6366f1; }

/* Camera viewfinder */
.camera-container video {
    border-radius: 0.75rem;
    object-fit: cover;
}

/* Smooth page transitions */
.page-enter { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Active nav link */
.nav-link.active {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-right: 3px solid #4f46e5;
}

/* Photo thumbnail grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* Progress Overlay */
.progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.progress-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.progress-ring {
    width: 64px;
    height: 64px;
    animation: spin 0.9s linear infinite;
}
.progress-ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}
.progress-ring .track { stroke: rgba(255,255,255,0.2); }
.progress-ring .fill  { stroke: #818cf8; stroke-dasharray: 160; stroke-dashoffset: 60; }
.progress-msg {
    margin-top: 16px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    max-width: 280px;
}
.progress-detail {
    margin-top: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-align: center;
}
