/* elder/elder.css */

/* 老人照片样式 */
.elder-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.elder-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

/* 健康状态标签 */
.health-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.health-status-badge.good {
    background-color: #d1fae5;
    color: #065f46;
}

.health-status-badge.fair {
    background-color: #fef3c7;
    color: #92400e;
}

.health-status-badge.poor {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 独居标识 */
.alone-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #991b1b;
}

/* 统计卡片样式 */
.stat-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 表格行悬停效果 */
.elder-table-row:hover {
    background-color: #f9fafb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .elder-table {
        font-size: 0.875rem;
    }
    
    .elder-photo,
    .elder-photo-placeholder {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* 空状态样式 */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.empty-state-title {
    color: #6b7280;
    font-weight: 500;
    font-size: 1.125rem;
}

.empty-state-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 表单样式 */
.elder-form-group {
    margin-bottom: 1rem;
}

.elder-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.elder-form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.elder-form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.action-button:hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}