/* AutoBook Custom Styles */

/* Recording pulse animation for voice button */
@keyframes recording-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}

.recording-pulse {
    animation: recording-pulse 1.5s ease-in-out infinite;
}

/* Smooth transitions for slot selection */
button {
    transition: all 0.2s ease;
}

/* Better touch targets on mobile */
@media (max-width: 640px) {
    button {
        min-height: 44px;
    }

    input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-pulse {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Connection status indicator pulse */
@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.bg-green-500 {
    animation: status-pulse 2s ease-in-out infinite;
}

/* Improve scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Safe area padding for notched devices */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Standalone PWA styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
    }
}

/* Prevent text selection on buttons */
button {
    user-select: none;
    -webkit-user-select: none;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hide focus ring for mouse users */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}
