/* doctor_container.css - оновлений */

/* Основні стилі контейнера */
.doctor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

/* Заголовок */
.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.doctor-title {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
     color: white;
}

.doctor-icon {
    width: 44px;
    height: 44px; 
    
}

#doctor_list-button img {
    filter: brightness(0) invert(1); /* Makes the image white */
    width: 44px;
    height: 44px;
}

#doctor_addtest-button img {
    width: 44px;
    height: 44px;
}

.doctor-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
    transition: transform 0.2s;
}

.doctor-close-btn:hover {
    transform: rotate(90deg);
   /* transform: scale(1.1);*/
}

/* Панель дій */
.doctor-actions {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.doctor-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.doctor-action-btn img {
    width: 18px;
    height: 18px;
}

.doctor-action-btn.primary {
    background-color: #3498db;
    color: white;
}

.doctor-action-btn.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.3);
}

.doctor-action-btn.secondary {
    background-color: #17a2b8;
    color: white;
}

.doctor-action-btn.secondary:hover {
    background-color: #0592a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Контентна частина */
.doctor-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.doctor_patients-list-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

/* Картки пацієнтів */
.doctor_patient-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.doctor_patient-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.doctor_patient-card-header h4 {
    margin: 0;
    color: #2c3e50;
}

.doctor_patient-id {
    font-size: 0.85rem;
    color: #6c757d;
}

.doctor_patient-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor_patient-info {
    display: flex;
    gap: 10px;
}

.doctor_info-label {
    font-weight: bold;
    color: #555;
}

.doctor_info-value {
    color: #333;
}

.doctor_patient-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.doctor_card-action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

/* Стани */
.doctor_empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.doctor_empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.doctor_empty-state h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.doctor_empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

.doctor_error-state {
    text-align: center;
    padding: 20px;
}

.doctor_error-state .error-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.doctor_retry-btn {
    margin-top: 15px;
}

/* Футер */
.doctor-footer {
    display: flex;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.doctor_footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background-color: transparent;
}

.doctor_footer-btn img {
    width: 16px;
    height: 16px;
}

.doctor_footer-btn.info {
    color: #2c3e50;
}

.doctor_footer-btn.info:hover {
    background-color: #e9ecef;
}

.doctor_footer-btn.logout {
    color: #e74c3c;
    margin-left: auto;
}

.doctor_footer-btn.logout:hover {
    background-color: #fde8e8;
}

/* Адаптація для планшетів */
@media (max-width: 768px) {
    .doctor-actions {
        flex-direction: column;
    }
    
    .doctor_patient-card-actions {
        flex-direction: column;
    }
}

/* Адаптація для телефонів */
@media (max-width: 480px) {
    .doctor-header {
        padding: 12px 15px;
    }
    
    .doctor-title {
        font-size: 1.2rem;
    }
    
    .doctor-content {
        padding: 15px;
    }
    
    .doctor_empty-state .empty-icon {
        width: 60px;
        height: 60px;
    }
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    width: 100%;
}

.empty-state p {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}