/* assets/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Calendar Styles */
.calendar-container {
    direction: rtl;
}

.calendar-day {
    min-height: 200px;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Appointment Card */
.appointment-card {
    border-right: 3px solid #3B82F6;
    transition: all 0.2s ease;
}

.appointment-card:hover {
    background-color: #EFF6FF;
}

/* Modal Animation */
.modal-enter {
    opacity: 0;
    transform: scale(0.9);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-primary {
    background-color: #3B82F6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563EB;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-cols-7 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .calendar-day {
        margin-bottom: 1rem;
    }
}

/* RTL Specific Styles */
[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    .calendar-container {
        box-shadow: none;
    }
}

/* assets/css/style.css */

/* Spinner الأساسي */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for Tailwind-like spin */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 2s linear infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes progress {
    0% { width: 0%; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 100%; margin-left: 0; }
}

.animate-progress {
    animation: progress 2s ease-in-out infinite;
}

/* إخفاء النافبار افتراضياً حتى يتم التحقق من المصادقة */
body > nav,
body > div[ng-controller="NavController"] > nav {
    display: none;
}

body.ng-scope > div[ng-controller="NavController"] > nav.ng-scope {
    display: block;
}