/* 병동 대시보드 스타일 */

.ward-dashboard {
    padding: 20px;
}

/* 간호사 필터 섹션 */
.nurse-filter-section {
    margin-bottom: 30px;
}

.nurse-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.nurse-filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nurse-filter-btn:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.nurse-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 알림 요약 섹션 */
.alert-summary-section {
    margin-bottom: 30px;
}

.alert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.alert-card {
    background: white;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.alert-card.alert-critical {
    border-left-color: #dc3545;
}

.alert-card.alert-high {
    border-left-color: #ff6b35;
}

.alert-card.alert-moderate {
    border-left-color: #ffc107;
}

.alert-card.alert-low {
    border-left-color: #28a745;
}

.alert-card.alert-none {
    border-left-color: #28a745;
    justify-content: center;
    cursor: default;
}

.alert-icon {
    font-size: 32px;
    color: inherit;
}

.alert-card.alert-critical .alert-icon {
    color: #dc3545; /* 빨간색 */
}

.alert-card.alert-high .alert-icon {
    color: #ff8800; /* 진한 주황색 */
}

.alert-card.alert-moderate .alert-icon {
    color: #ffc107; /* 주황색 */
}

.alert-card.alert-low .alert-icon {
    color: #28a745; /* 초록색 */
}

.alert-card.alert-none .alert-icon {
    color: #28a745;
}

.alert-content {
    flex: 1;
}

.alert-patient {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.alert-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.alert-badge {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 환자 리스트 테이블 */
.patient-list-section {
    margin-bottom: 30px;
}

.ward-patient-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.ward-patient-table thead {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
}

.ward-patient-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.ward-patient-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
}

.patient-row {
    transition: all 0.2s;
    cursor: pointer;
}

.patient-row:hover {
    background: #f8f9fa;
}

.patient-row.risk-critical {
    background: #fff5f5;
}

.patient-row.risk-high {
    background: #fff8f5;
}

.patient-row.risk-moderate {
    background: #fffef5;
}

/* 위험도 배지 */
.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.risk-badge.risk-low {
    background: #d4edda;
    color: #155724;
}

.risk-badge.risk-low i {
    color: #28a745; /* 초록색 */
}

.risk-badge.risk-moderate {
    background: #fff3cd;
    color: #856404;
}

.risk-badge.risk-moderate i {
    color: #ffc107; /* 주황색 */
}

.risk-badge.risk-high {
    background: #ffe5d9;
    color: #d63384;
}

.risk-badge.risk-high i {
    color: #ff8800; /* 진한 주황색 */
}

.risk-badge.risk-critical {
    background: #f8d7da;
    color: #721c24;
}

.risk-badge.risk-critical i {
    color: #dc3545; /* 빨간색 */
}

/* 환자 상세 화면 */
.patient-detail-view {
    padding: 20px;
}

.patient-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.patient-detail-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.patient-detail-header p {
    margin: 5px 0 0 0;
    color: #6c757d;
}

/* 탭 메뉴 */
.patient-detail-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: #f8f9fa;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.patient-detail-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

/* 동공 검사 박스 */
.pupil-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.pupil-box h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 16px;
}

/* Motor Grade Legend */
.motor-grade-legend ul {
    margin: 0;
}

.motor-grade-legend li {
    padding: 5px 0;
    font-size: 13px;
}

/* 버튼 스타일 보완 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 텍스트 유틸리티 */
.text-danger {
    color: #dc3545 !important;
}

.text-secondary {
    color: #6c757d !important;
    font-size: 11px;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .alert-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ward-patient-table {
        font-size: 12px;
    }
    
    .ward-patient-table th,
    .ward-patient-table td {
        padding: 8px 5px;
    }
    
    .nurse-filter-buttons {
        flex-direction: column;
    }
    
    .nurse-filter-btn {
        width: 100%;
    }
    
    .alert-cards {
        grid-template-columns: 1fr;
    }
}
