/* 센터 선택 버튼 스타일 */
.center-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.center-btn {
    padding: 8px 16px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.center-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.center-btn.active {
    background: #fff;
    color: #0066cc;
    font-weight: 600;
}

.center-btn i {
    font-size: 16px;
}

/* 외상센터 헤더 스타일 */
.emr-header.trauma-center {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.emr-header.trauma-center .center-btn.active {
    background: #fff;
    color: #dc3545;
}

.emr-header.trauma-center .hospital-type {
    color: #fff;
}

/* 외상센터 활성화 시 센터 버튼 스타일 */
.emr-header.trauma-center .center-btn[data-center="trauma"] {
    border-color: #fff;
    background: #fff;
    color: #dc3545;
}

.emr-header.trauma-center .center-btn[data-center="stroke"] {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* 외상센터 - 타임라인 네비게이터 빨간색 테마 (배경 흰색, 선택시만 빨강) */
body.trauma-center .timeline-navigator {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #dc3545;
}

body.trauma-center .timeline-title {
    color: #dc3545;
}

/* 타임라인 Day Dot */
body.trauma-center .timeline-day:not(.active) .day-dot {
    border-color: #ccc;
    background: white;
}

body.trauma-center .timeline-day:hover:not(.active) .day-dot {
    border-color: #dc3545;
}

body.trauma-center .timeline-day.active .day-dot {
    border-color: #dc3545;
    background: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

/* 타임라인 Day Content */
body.trauma-center .timeline-day:not(.active) .day-content {
    background: white;
    color: #333;
    border-color: #e9ecef;
}

body.trauma-center .timeline-day.active .day-content {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

body.trauma-center .timeline-day.active .day-number,
body.trauma-center .timeline-day.active .day-label {
    color: #fff;
    opacity: 1;
}

body.trauma-center .timeline-day:not(.active) .day-number,
body.trauma-center .timeline-day:not(.active) .day-label {
    color: #333;
}

body.trauma-center .timeline-day:hover:not(.active) {
    background: transparent;
}

body.trauma-center .timeline-day:hover:not(.active) .day-content {
    background: #ffe5e9;
    border-color: #dc3545;
    transform: translateY(-3px);
}

body.trauma-center .timeline-day:hover:not(.active) .day-number,
body.trauma-center .timeline-day:hover:not(.active) .day-label {
    color: #dc3545;
}

body.trauma-center .timeline-progress-bar {
    background: #e9ecef;
}

body.trauma-center .timeline-progress-fill {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

body.trauma-center .total-days {
    background: #ffe5e9;
    color: #dc3545;
}

body.trauma-center .current-day-text {
    color: #dc3545;
}

/* 외상센터 - 좌측 사이드바 빨간색 테마 (배경 흰색, 선택시만 빨강) */
body.trauma-center .emr-sidebar {
    background: #ffffff;
    border-right: 2px solid #dc3545;
}

body.trauma-center .sidebar-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dc3545;
}

body.trauma-center .sidebar-header h3 {
    color: #dc3545;
}

body.trauma-center .menu-item {
    color: #333;
    border-left: 3px solid transparent;
}

body.trauma-center .menu-item:hover {
    background: #ffe5e9;
    color: #dc3545;
    border-left-color: #dc3545;
}

body.trauma-center .menu-item.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-left-color: #bd2130;
    font-weight: 600;
}

body.trauma-center .menu-item i {
    color: #666;
}

body.trauma-center .menu-item:hover i {
    color: #dc3545;
}

body.trauma-center .menu-item.active i {
    color: #fff;
}

body.trauma-center .menu-expandable {
    color: #333;
}

body.trauma-center .menu-expandable:hover {
    background: #ffe5e9;
    color: #dc3545;
}

body.trauma-center .submenu {
    background: #f8f9fa;
}

body.trauma-center .submenu li {
    color: #555;
    border-left: 2px solid transparent;
}

body.trauma-center .submenu li:hover {
    background: #ffe5e9;
    color: #dc3545;
    border-left-color: #dc3545;
}

body.trauma-center .submenu li.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-left-color: #bd2130;
    font-weight: 600;
}

/* 센터 정보 배너 */
.center-info-banner {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.center-info-banner.stroke {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
}

.center-info-banner.trauma {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.center-info-banner i {
    font-size: 24px;
}

/* 센터 전환 애니메이션 */
.center-switching {
    animation: centerSwitch 0.5s ease-in-out;
}

@keyframes centerSwitch {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
