/* Custom styles on top of Tailwind */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Swipeable gallery on mobile */
.gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll > img {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 80vw;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading spinner */
.spinner {
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress bar */
.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: pulse-width 2s ease-in-out infinite;
}
@keyframes pulse-width {
    0%, 100% { width: 30%; }
    50% { width: 80%; }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: toast-in 0.3s ease;
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Card hover */
.card-hover {
    transition: transform 0.15s, box-shadow 0.15s;
}
.card-hover:active {
    transform: scale(0.98);
}
