/* user-container.css */
/* Основні стилі контейнера */
.user-container {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
    border: none;
}

/* Головний контейнер з прокруткою --*/
.user-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* Заголовок */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    position: relative;
    flex-shrink: 0;
}

.user-title {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: white;
}



.user-icon {
    width: 44px;
    height: 44px;
}

.user-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 12px;
    transition: transform 0.2s;
}

.user-close-btn:hover {
    transform: rotate(90deg);
}

/* Панель дій */
.user-actions {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.user-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    flex: 1;
}

.user-action-btn img {
    width: 20px;
    height: 20px;
}

.user-action-btn.primary {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.user-action-btn.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 128, 185, 0.4);
}

.user-action-btn.secondary {
    background-color: #e2e8f0;
    color: #2c3e50;
}

.user-action-btn.secondary:hover {
    background-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(203, 213, 224, 0.3);
}

/* Контентна частина */
.user-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Контентна частина - тепер з прокруткою */
.user-content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    max-height: none;
    height: 100%;
}

/* Стилі для пустого стану */
.patients-list-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#user_list-button{
    background-color: rgb(46, 172, 235);
    color: white;
}
#user_list-button img {
    filter: brightness(0) invert(1); /* Makes the image white */
    width: 44px;
    height: 44px; 
       
}

.user_empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.user-health-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
    padding: 16px 0;
    background-color: #f8fafc;
    border-radius: 12px;
}

.health-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.health-metric img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.metric-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-list-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #475569;
    font-weight: 500;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.4;
    color: #64748b;
}

/* Футер */
.user-footer {
    display: flex;
    padding: 14px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
    flex-shrink: 0;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    background-color: transparent;
}

.footer-btn img {
    width: 18px;
    height: 18px;
}

.footer-btn.health-info {
    color: #3498db;
}

.footer-btn.health-info:hover {
    background-color: #e0f2fe;
}

.footer-btn.logout {
    color: #ef4444;
    margin-left: auto;
}

.footer-btn.logout:hover {
    background-color: #fee2e2;
}

/* Анімації */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилі для списку тестів (коли вони є) */
.test-card {
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    transition: all 0.2s ease;
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.test-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.test-date {
    font-weight: 600;
    color: #2c3e50;
}

.test-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.test-status.normal {
    background-color: #dcfce7;
    color: #166534;
}

.test-status.warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.test-status.critical {
    background-color: #fee2e2;
    color: #991b1b;
}

.test-details {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.test-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #475569;
}

.test-detail img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Адаптація для планшетів */
@media (max-width: 768px) {
    .user-container {
        width: 100%;
        max-height: 100vh;
    }
    
    .user-health-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .health-metric {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .user-actions {
        flex-direction: column;
    }
}

/* Адаптація для телефонів */
@media (max-width: 480px) {
    .user-header {
        padding: 14px 16px;
    }
    
    .user-title {
        font-size: 1.2rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    
    .user-content {
        padding: 16px;
    }
    
    .footer-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .user-health-summary {
        padding: 16px;
    }
    
    .health-metric {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Адаптація для малих екранів */
@media (max-height: 600px) {
    .user-container {
        max-height: 100vh;
    }
    
    .user-content-scrollable {
        max-height: none;
    }
    
    .user-header,
    .user-actions,
    .user-footer {
        padding: 12px 16px;
    }
    
    .user-title {
        font-size: 1.1rem;
    }
    
    .user-icon {
        width: 32px;
        height: 32px;
    }
}

/* Адаптація для широких екранів */
@media (min-width: 1200px) {
    .user-container {
        max-height: 100vh;
    }
    
    .user-content-scrollable {
        max-height: none;
    }
}

/* Додаткові стилі для кращого відображення на всіх пристроях */
@media (orientation: landscape) {
    .user-container {
        width: 100%;
        height: 100vh;
    }
}

@media (orientation: portrait) {
    .user-container {
        width: 100%;
        height: 100vh;
    }
}