/* قائمة جانبية المواعيد المتاحة */ .appointments-sidebar { position: fixed; top: 0; right: 0; width: 350px; height: 100vh; background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); z-index: 50; transform: translateX(100%); transition: transform 0.3s ease-in-out; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; } .appointments-sidebar.open { transform: translateX(0); } .appointments-sidebar::-webkit-scrollbar { width: 6px; } .appointments-sidebar::-webkit-scrollbar-track { background: transparent; } .appointments-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; } .appointments-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* Header القائمة */ .sidebar-header { padding: 20px; background: rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: sticky; top: 0; z-index: 10; } .sidebar-header h3 { color: white; font-size: 18px; font-weight: 600; margin: 0 0 10px 0; display: flex; align-items: center; gap: 8px; } .sidebar-header .date-selector { display: flex; gap: 10px; align-items: center; } .sidebar-header .date-input { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 8px 12px; border-radius: 6px; font-size: 14px; flex: 1; } .sidebar-header .date-input:focus { outline: none; background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); } .sidebar-header .refresh-btn { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; } .sidebar-header .refresh-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(180deg); } /* الإحصائيات */ .sidebar-stats { padding: 15px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(0, 0, 0, 0.05); } .stat-card { background: rgba(255, 255, 255, 0.1); padding: 12px; border-radius: 8px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s; } .stat-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); } .stat-number { font-size: 24px; font-weight: 700; color: white; margin: 0; } .stat-label { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin: 4px 0 0 0; } /* قائمة المواعيد */ .appointments-list { padding: 0 20px 20px; } .appointment-item { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 12px; margin-bottom: 10px; transition: all 0.2s; cursor: pointer; } .appointment-item:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(-5px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .appointment-item.available { border-left: 4px solid #10b981; } .appointment-item.confirmed { border-left: 4px solid #3b82f6; } .appointment-item.waiting { border-left: 4px solid #f59e0b; } .appointment-time { font-size: 16px; font-weight: 600; color: white; margin: 0 0 4px 0; } .appointment-doctor { font-size: 14px; color: rgba(255, 255, 255, 0.9); margin: 0 0 2px 0; } .appointment-patient { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 0 0 6px 0; } .appointment-status { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; } .appointment-status.available { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); } .appointment-status.confirmed { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); } .appointment-status.waiting { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); } /* أزرار الإجراءات */ .appointment-actions { display: flex; gap: 6px; margin-top: 8px; } .action-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: all 0.2s; display: flex; align-items: center; gap: 4px; } .action-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); } .action-btn.book { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.3); color: #10b981; } .action-btn.book:hover { background: rgba(16, 185, 129, 0.3); } .action-btn.view { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.3); color: #3b82f6; } .action-btn.view:hover { background: rgba(59, 130, 246, 0.3); } .action-btn.cancel { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; } .action-btn.cancel:hover { background: rgba(239, 68, 68, 0.3); } /* زر فتح/إغلاق القائمة */ .sidebar-toggle { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); border: none; color: white; padding: 15px 10px; border-radius: 8px 0 0 8px; cursor: pointer; box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1); transition: all 0.3s; z-index: 51; writing-mode: vertical-rl; text-orientation: mixed; font-size: 12px; font-weight: 600; } .sidebar-toggle:hover { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); transform: translateY(-50%) translateX(-5px); } .sidebar-toggle.open { right: 370px; } /* رسالة فارغة */ .empty-state { text-align: center; padding: 40px 20px; color: rgba(255, 255, 255, 0.7); } .empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; } .empty-state h4 { color: white; margin: 0 0 8px 0; font-size: 16px; } .empty-state p { margin: 0; font-size: 14px; line-height: 1.5; } /* تحميل */ .loading { text-align: center; padding: 40px 20px; color: rgba(255, 255, 255, 0.7); } .loading i { font-size: 32px; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* استجابة للشاشات الصغيرة */ @media (max-width: 768px) { .appointments-sidebar { width: 100vw; right: 0; } .sidebar-toggle { right: 10px; } .sidebar-toggle.open { right: calc(100vw + 10px); } .sidebar-stats { grid-template-columns: 1fr; gap: 8px; } } /* تأثيرات إضافية */ .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 49; opacity: 0; visibility: hidden; transition: all 0.3s; } .sidebar-overlay.open { opacity: 1; visibility: visible; } /* رسائل التنبيه في القائمة الجانبية */ .sidebar-alert { position: sticky; top: 0; z-index: 15; padding: 10px 20px; margin: 0 -20px 15px -20px; border-radius: 0; font-size: 14px; text-align: center; } .sidebar-alert.success { background: rgba(16, 185, 129, 0.2); color: #10b981; border-bottom: 1px solid rgba(16, 185, 129, 0.3); } .sidebar-alert.error { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-bottom: 1px solid rgba(239, 68, 68, 0.3); } .sidebar-alert.info { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border-bottom: 1px solid rgba(59, 130, 246, 0.3); }