/* Custom styles for admin panel */

/* Loading animations */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Upload area styles */
.upload-zone {
    border: 2px dashed #cbd5e0;
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #d4af37;
    background-color: #fef5e7;
}

/* Image preview styles */
.image-preview {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-preview img {
    transition: transform 0.3s ease;
}

.image-preview:hover img {
    transform: scale(1.05);
}

/* Calendar styles */
.calendar-day {
    min-height: 80px;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

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

.calendar-day.today {
    background-color: #fef3c7;
    border-color: #d4af37;
}

.appointment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d4af37;
    display: inline-block;
    margin-right: 4px;
}

/* Message status indicators */
.message-unread {
    position: relative;
}

.message-unread::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: #3b82f6;
    border-radius: 2px;
}

/* Form enhancements */
.form-field {
    transition: all 0.3s ease;
}

.form-field:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

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

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

/* Status badges */
.status-confirmed {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Sidebar animations */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* File upload progress */
.upload-progress {
    background: linear-gradient(90deg, #d4af37 0%, #d4af37 var(--progress, 0%), #e5e7eb var(--progress, 0%), #e5e7eb 100%);
    transition: background 0.3s ease;
}

/* Notification styles */
.notification {
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

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

/* Chart container responsiveness */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-container {
        height: 250px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1a1a1a;
        color: #f8f8f8;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.focus-visible:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

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