@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
}

/* 1. Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar-dark::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }

/* 2. Cards & Panels */
.glass-card { background: white; border-radius: 2rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
.glass-panel { background: #1e293b; border: 1px solid #334155; }
.action-card { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }

/* 3. Modals & Popups */
.modal-overlay { background-color: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.dark-mode { background-color: rgba(15, 23, 42, 0.85); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { transform: scale(0.95); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: scale(1); }

.swal2-popup { font-family: 'Tajawal', sans-serif !important; border-radius: 1.5rem !important; }

/* 4. Chat Widget & Animations */
.chat-widget { opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.chat-widget.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.new-msg-dot { width: 12px; height: 12px; background-color: #ef4444; border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } 
}

/* 5. Tab Buttons Transitions */
.tab-btn { transition: all 0.3s ease; }
.login-tab.active { background-color: #4f46e5; color: white; border-color: #4f46e5; box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3); }
.super-tab.active { background-color: #2563eb; color: white; border-color: #3b82f6; }
.staff-tab.active { background-color: #1e293b; color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.staff-tab.active i { color: #60a5fa; }

/* 6. Patient Portal Specifics (حقول إدخال المرضى) */
.input-field { width: 100%; padding: 1rem 1.25rem 1rem 2.5rem; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; outline: none; transition: all 0.3s; font-size: 0.875rem; font-weight: bold; color: #334155; }
.input-field:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.input-field:disabled { background-color: #e2e8f0; cursor: not-allowed; opacity: 0.7; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.form-label { display: block; font-size: 0.85rem; font-weight: 900; color: #475569; margin-bottom: 0.5rem; }

/* 7. Standalone Chat Specifics (شات المريض المستقل) */
.chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 13px; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.patient-bubble { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border-bottom-left-radius: 4px; }
.staff-bubble { background: white; color: #334155; border: 1px solid #e2e8f0; border-bottom-right-radius: 4px; }
.animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }