/* Custom styles for ExpatHealth */

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.show {
    display: block;
}

/* FAQ accordion animations */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    transition: all 0.4s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.faq-answer.show {
    max-height: 500px;
    opacity: 1;
}

/* File upload styling */
.upload-area {
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #f8fafc;
}

/* Calendar day hover effects */
.calendar-day:hover {
    background-color: #dbeafe;
}

.calendar-day.selected {
    background-color: #3b82f6;
    color: white;
}

/* Time slot selection */
.time-slot.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Doctor card hover effects */
.doctor-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.form-error:focus {
    ring-color: #ef4444;
}

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

/* Custom scrollbar for dashboard */
.dashboard-scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dashboard-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dashboard-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Pulse animation for notifications */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom checkbox and radio styles */
input[type="checkbox"], input[type="radio"] {
    accent-color: #3b82f6;
}

/* Progress indicators */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    height: 4px;
    transition: width 0.3s ease;
}

/* Status indicators */
.status-online {
    background-color: #10b981;
}

.status-offline {
    background-color: #6b7280;
}

.status-busy {
    background-color: #f59e0b;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Medical icons styling */
.medical-icon {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 2px solid #81d4fa;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.25rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-blue-600, .bg-green-600, .bg-purple-600 {
        background: #374151 !important;
        color: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .text-gray-500 {
        color: #000000;
    }
    
    .border-gray-200 {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}
