/**
 * أنماط نظام إدارة العيادات الطبية
 */

/* عام */
.clinic-system {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* قائمة الأطباء */
.clinic-doctors-list,
.clinic-receptions-list {
    padding: 20px;
}

.clinic-location-selector {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.clinic-location-selector h3 {
    margin-bottom: 15px;
    color: #333;
}

.clinic-address-input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.clinic-btn {
    background: #20B2AA;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background 0.3s;
}

.clinic-btn:hover {
    background: #17a08c;
}

.clinic-btn-secondary {
    background: #666;
}

.clinic-btn-secondary:hover {
    background: #444;
}

/* بطاقات الأطباء والمكاتب */
.clinic-doctors-grid,
.clinic-receptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.clinic-doctor-card,
.clinic-reception-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.clinic-doctor-card:hover,
.clinic-reception-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.clinic-doctor-card h3,
.clinic-reception-card h3 {
    color: #20B2AA;
    margin-bottom: 10px;
    font-size: 20px;
}

.clinic-doctor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.clinic-doctor-header h3 {
    margin: 0;
    flex: 1;
}

.clinic-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.clinic-status-online {
    background-color: #28a745;
    animation: pulse-green 2s infinite;
}

.clinic-status-offline {
    background-color: #dc3545;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.clinic-specialty {
    color: #666;
    font-size: 14px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.clinic-specialty .clinic-label {
    font-weight: bold;
    color: #20B2AA;
    min-width: 80px;
    flex-shrink: 0;
}

.clinic-specialty .clinic-value {
    color: #333;
    flex: 1;
}

.clinic-distance {
    color: #555;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.clinic-distance .clinic-label {
    font-weight: bold;
    color: #20B2AA;
    min-width: 80px;
    flex-shrink: 0;
}

.clinic-distance .clinic-value {
    color: #28a745;
    font-weight: bold;
    flex: 1;
}

.clinic-address,
.clinic-phone {
    color: #555;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.clinic-address .clinic-label,
.clinic-phone .clinic-label {
    font-weight: bold;
    color: #20B2AA;
    min-width: 80px;
    flex-shrink: 0;
}

.clinic-address .clinic-value,
.clinic-phone .clinic-value {
    color: #333;
    flex: 1;
}

.clinic-distance {
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
}

.clinic-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.clinic-btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.clinic-btn-map .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.clinic-qr-code {
    margin-top: 15px;
    text-align: center;
}

.clinic-qr-code img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

/* شاشة الانتظار */
.clinic-waiting-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clinic-waiting-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.clinic-waiting-date {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.clinic-waiting-content {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.clinic-current-number,
.clinic-next-number {
    flex: 1;
}

.clinic-current-number h2,
.clinic-next-number h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.clinic-number-display {
    background: rgba(255,255,255,0.2);
    border: 4px solid #fff;
    border-radius: 20px;
    padding: 40px;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.clinic-number-value {
    font-size: 120px;
    font-weight: bold;
    display: block;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

/* واجهة الإدارة */
.clinic-admin-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.clinic-admin-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.clinic-admin-form .form-group {
    margin-bottom: 15px;
}

.clinic-admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.clinic-admin-form input,
.clinic-admin-form select,
.clinic-admin-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.clinic-admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.clinic-admin-form .submit-btn {
    background: #20B2AA;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.clinic-admin-form .submit-btn:hover {
    background: #17a08c;
}

/* قائمة المرضى */
.clinic-patients-list {
    margin-top: 20px;
}

.clinic-patient-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clinic-patient-info {
    flex: 1;
}

.clinic-patient-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.clinic-patient-details {
    color: #666;
    font-size: 14px;
}

.clinic-queue-badge {
    background: #d32f2f;
    color: #fff;
    padding: 1px 20px;
    border-radius: 20px;
    font-size: 19px;
    font-weight: bold;
    margin: 5px
}

.clinic-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.clinic-status-waiting {
    background: #ffc107;
    color: #000;
}

.clinic-status-in-examination {
    background: #20B2AA;
    color: #fff;
}

.clinic-status-examined {
    background: #4caf50;
    color: #fff;
}

.clinic-status-not-attended {
    background: #f44336;
    color: #fff;
}

/* لوحة تحكم الطبيب */
.clinic-doctor-dashboard {
    direction: rtl;
}

.clinic-dashboard-header {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clinic-date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-current-queue-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #20B2AA;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 18px;
}

.clinic-current-label {
    font-weight: bold;
}

.clinic-current-number-badge {
    font-size: 32px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
}

.clinic-patient-row.clinic-current-patient {
    background-color: #e0f7f4 !important;
    border-left: 4px solid #20B2AA;
}

.clinic-set-current-btn,
.clinic-show-current-btn {
    cursor: pointer;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .clinic-waiting-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .clinic-doctors-grid,
    .clinic-receptions-grid {
        grid-template-columns: 1fr;
    }
    
    .clinic-number-value {
        font-size: 80px;
    }
    
    .clinic-waiting-header h1 {
        font-size: 32px;
    }
}


