/* النظام الأساسي */
.psy-booking-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.doctor-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e6eeff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-10px);
    border-color: #2c5aa0;
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.doctor-info h3 {
    color: #2c5aa0;
    margin: 10px 0 5px;
    font-size: 1.4em;
}

.specialty {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.doctor-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9em;
    color: #888;
}

.book-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 90, 160, 0.2);
}

/* الرسائل */
.psy-message {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffeeba;
    text-align: center;
    margin: 20px 0;
}

.psy-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

.psy-login-required {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
}

.psy-login-required h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
}

/* تنسيقات عامة */
.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* تنبيهات المواعيد */
.slot-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #ffeeba;
    font-size: 14px;
}

.slot-expired {
    opacity: 0.5;
    text-decoration: line-through;
}

.slot-unavailable {
    color: #dc3545;
    font-style: italic;
}

/* خيارات الـ select */
.slot-option.bookable {
    color: #28a745;
    font-weight: bold;
}

.slot-option.not-bookable {
    color: #dc3545;
    font-style: italic;
}

/* حالة المواعيد المختارة */
.slot-item.warning {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.slot-item.expired {
    border-left-color: #dc3545;
    background: #f8f9fa;
    opacity: 0.7;
}

/* حالة التاريخ */
.date-input.invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.date-input.valid {
    border-color: #28a745 !important;
}

.date-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* تلميح للمواعيد المخفية */
.hidden-slots-note {
    background: #e7f3ff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #2c5aa0;
    border-left: 4px solid #2c5aa0;
}

/* وقت الموعد المتبقي */
.time-remaining {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.time-remaining.warning {
    color: #dc3545;
    font-weight: bold;
}

/* حالة الـ select */
.slot-status-info {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.slot-status-bookable {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.slot-status-not-bookable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .psy-booking-container {
        padding: 20px;
        margin: 15px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-card {
        padding: 20px;
    }
}

/* أنيميشن للمواعيد */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.slot-item:hover {
    animation: pulse 0.5s ease;
}

/* ألوان للمواعيد بناءً على الوقت المتبقي */
.slot-item.safe {
    border-left-color: #28a745;
}

.slot-item.warning {
    border-left-color: #ffc107;
}

.slot-item.danger {
    border-left-color: #dc3545;
}