/* Main CSS for Dr. David Berdugo Website */

/* Additional custom styles beyond Tailwind */

.btn-primary {
    background-color: #0d9488;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
}

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background-color: #10b981;
    color: white;
}

.flash-error {
    background-color: #ef4444;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d9488;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Calendar specific styles */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #f1f5f9;
}

.calendar-day.available {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.calendar-day.selected {
    background-color: #0d9488;
    color: white;
    font-weight: 700;
}

.calendar-day.unavailable {
    background-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* Time slot buttons */
.time-slot {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.time-slot:hover {
    border-color: #0d9488;
    background-color: #f0fdfa;
}

.time-slot.selected {
    background-color: #0d9488;
    color: white;
    border-color: #0d9488;
}

.time-slot.unavailable {
    background-color: #f8fafc;
    color: #cbd5e1;
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Form validation */
.form-error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
