/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #004999;
    --secondary-color: #00a8e8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --bg-main: #f5f7fa;
    --bg-white: #ffffff;
    --bg-light: #e9ecef;
    --bg-dark: #343a40;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #868e96;
    
    --border-color: #dee2e6;
    --border-radius: 4px;
    
    --sidebar-width: 280px;
    --header-height: 64px;
    
    /* 센터별 컬러는 center-accent-system.css에서 관리 */
    /* --accent-stroke, --accent-trauma, --accent-cardio, --accent-spine, --accent-respiratory, --accent-cancer */
    /* 기존 변수는 하위 호환성을 위해 유지 (사용 지양) */
    --center-stroke: #6B8CAE;        /* 뇌신경센터 - 차분한 블루그레이 */
    --center-trauma: #8B5555;        /* 외상센터 - 절제된 다크 레드 */
    --center-cardio: #9B6B7E;        /* 심혈관센터 - 절제된 와인 레드 */
    --center-spine: #7A9B7E;         /* 척추관절센터 - 조용한 세이지 그린 */
    --center-respiratory: #6B8B9B;   /* 호흡기센터 - 조용한 틸 블루 */
    --center-cancer: #6B8B8B;        /* 암센터 - 중립적 틸 그린 */
    --center-integrated: #7a8c9e;    /* 통합케어센터 - 중립 회청색 */
    
    /* EMR Font System */
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'IBM Plex Sans', 'Noto Sans KR', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    
    /* EMR Letter Spacing (10% narrower) */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;
    
    /* EMR Font Stretch (90% for compact look) */
    --font-stretch-compact: 90%;
}

/* 낙상/욕창 위험도 평가 스타일 */
.intervention-list {
    list-style: none;
    padding: 0;
}

.intervention-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.intervention-list li:last-child {
    border-bottom: none;
}

.intervention-list i {
    margin-top: 3px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: var(--letter-spacing-normal);
    font-stretch: var(--font-stretch-compact);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* EMR Header - 단순 정보 표시 바 */
.emr-header {
    height: var(--header-height);
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 센터 컨텍스트 컬러 바 (헤더 하단 4px) */
/* center-accent-system.css에서 관리 - 여기서는 기본 구조만 정의 */
.center-context-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--center-stroke); /* 기본값 */
    transition: background-color 0.3s ease;
    z-index: 1001;
}

/* 센터별 색상은 center-accent-system.css 참조 */

/* 좌측 영역 - 병원명 + 환자 정보 */
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

/* 병원명 - 시스템 레이블 스타일 */
.hospital-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.hospital-logo i {
    font-size: 14px;
}

.hospital-name {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.3px; /* 20% 축소: 0.5px → -0.3px */
    text-transform: uppercase;
    font-family: 'Arial', 'Helvetica', sans-serif;
    cursor: pointer; /* 더블클릭 가능한 버튼임을 표시 */
    user-select: none; /* 텍스트 선택 방지 */
}

/* 환자 정보 - 텍스트 형태 */
.patient-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.patient-name {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.patient-id {
    opacity: 0.85;
    font-size: 12px;
}

.patient-diagnosis {
    font-size: 12px;
    opacity: 0.85;
    color: #ffd700;
}

/* 센터 미선택 메시지 */
.no-center-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse-message 2s ease-in-out infinite;
}

.no-center-message i {
    font-size: 18px;
    animation: point-left 1.5s ease-in-out infinite;
}

@keyframes pulse-message {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

@keyframes point-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* 우측 영역 - 사용자 + 시간 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.current-user {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.current-user i {
    font-size: 12px;
}

.current-time {
    opacity: 0.85;
    font-size: 11px;
}

/* 로그아웃 버튼 */
.btn-logout {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-logout:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

.btn-logout i {
    font-size: 13px;
}

/* Main Container - 좌우 스크롤 분리 */
.emr-container {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Sidebar - 독립적인 스크롤 */
.emr-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    height: 100%;
}

/* 센터 선택기 - 드롭다운 방식 (비활성화됨) */
.center-selector {
    display: none !important; /* 좌측 드롭다운 UI 제거 */
    position: relative;
    padding: 12px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.center-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 드롭다운 토글 버튼 */
.center-dropdown-toggle {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.center-dropdown-toggle:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.center-dropdown-toggle .current-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.center-dropdown-toggle .chevron {
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--text-secondary);
}

.center-dropdown-toggle.active .chevron {
    transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.center-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.center-dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
}

.center-dropdown-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.center-dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.center-dropdown-item:hover {
    background: var(--bg-light);
}

.center-dropdown-item.selected {
    background: var(--bg-light);
    font-weight: 600;
}

/* 센터별 드롭다운 항목 색상 */
.center-dropdown-item[data-center="stroke"]:hover,
.center-dropdown-item[data-center="stroke"].selected {
    border-left-color: var(--center-stroke);
    color: var(--center-stroke);
}

.center-dropdown-item[data-center="trauma"]:hover,
.center-dropdown-item[data-center="trauma"].selected {
    border-left-color: var(--center-trauma);
    color: var(--center-trauma);
}

.center-dropdown-item[data-center="spine"]:hover,
.center-dropdown-item[data-center="spine"].selected {
    border-left-color: var(--center-spine);
    color: var(--center-spine);
}

.center-dropdown-item[data-center="cancer"]:hover,
.center-dropdown-item[data-center="cancer"].selected {
    border-left-color: var(--center-cancer);
    color: var(--center-cancer);
}

.center-dropdown-item .check-icon {
    font-size: 12px;
}

/* 센터별 체크 아이콘 색상 */
.center-dropdown-item[data-center="stroke"] .check-icon {
    color: var(--center-stroke);
}

.center-dropdown-item[data-center="trauma"] .check-icon {
    color: var(--center-trauma);
}

.center-dropdown-item[data-center="spine"] .check-icon {
    color: var(--center-spine);
}

.center-dropdown-item[data-center="cancer"] .check-icon {
    color: var(--center-cancer);
}

.menu-tree {
    padding: 5px 0;
}

.menu-list {
    list-style: none;
}

/* 상위 메뉴 (Level 1) - 16px 들여쓰기, 우측 8px */
.menu-item {
    padding: 8px 8px 8px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    border-left: 3px solid transparent; /* 센터별 강조 라인 */
    background-color: transparent;
    letter-spacing: var(--letter-spacing-tight);
    font-stretch: var(--font-stretch-compact);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Menu Category (always expanded) */
.menu-category {
    font-weight: 500;
}

/* 호버/활성 상태는 center-accent-system.css에서 센터별 관리 */
.menu-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.menu-item.active {
    background-color: var(--bg-light);
    border-left-color: var(--primary-color);
    color: var(--text-primary);
}

.menu-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 10px 0;
    list-style: none;
}

.submenu {
    list-style: none;
    display: block;
    background: transparent;
    padding: 0;
    margin: 0;
}

.submenu-open {
    display: block;
}

/* 하위 메뉴 (Level 2) - 28px 들여쓰기, 우측 8px */
.submenu li {
    padding: 6px 8px 6px 28px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: border-left-color 0.2s;
    background: transparent;
    letter-spacing: var(--letter-spacing-tight);
    font-stretch: var(--font-stretch-compact);
    font-family: var(--font-primary);
    font-weight: 400;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submenu li:hover {
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.submenu li.active {
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* 세부 메뉴 (Level 3) - 40px 들여쓰기, 우측 8px */
.submenu .submenu li {
    padding: 6px 8px 6px 40px;
    font-size: 12px;
}

/* 메뉴 카테고리 (always expanded) */
.menu-category {
    font-weight: 500;
}

/* Main Content - 독립적인 스크롤 */
.emr-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-main);
    height: 100%;
}

/* Content Wrapper - 타임라인을 위한 상단 여백 */
.content-wrapper {
    padding: 20px 24px;  /* 좌우 24px 통일 */
    min-height: calc(100vh - var(--header-height));
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 타임라인이 펼쳐졌을 때 상단 여백 추가 */
body:not(.timeline-collapsed) .content-wrapper {
    margin-top: 150px;  /* 타임라인 높이만큼 */
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.content-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: var(--letter-spacing-normal);
    font-family: var(--font-primary);
}

.content-actions {
    display: flex;
    gap: 10px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 10px;
}

.content-actions button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.content-actions button:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.content-body {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 600px;
}

/* Section Styles */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.highlight {
    color: var(--danger-color);
    font-weight: 700;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

.data-table th {
    background: var(--bg-dark);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.data-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.data-table tr:hover td {
    background: var(--bg-light);
}

/* Alert Box */
.alert-box {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-box i {
    font-size: 20px;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

/* Collapsible Section */
.collapsible-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.collapsible-header {
    background: var(--bg-light);
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: #d3d8dd;
}

.collapsible-content {
    padding: 20px;
    display: none;
}

.collapsible-section.expanded .collapsible-content {
    display: block;
}

.collapsible-section.expanded .collapsible-header i {
    transform: rotate(180deg);
}

/* NIHSS Form */
.nihss-form {
    max-width: 800px;
}

.nihss-item {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

.nihss-item-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.nihss-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nihss-option {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.nihss-option:hover {
    background: #e3f2fd;
}

.nihss-option input[type="radio"] {
    margin-right: 10px;
}

.nihss-option.selected {
    background: #e3f2fd;
    border: 2px solid var(--primary-color);
}

.nihss-score {
    margin-top: 20px;
    padding: 20px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
}

/* Flow Sheet Styles */
.flow-sheet {
    overflow-x: auto;
}

.flow-table {
    min-width: 1000px;
}

.flow-table th {
    min-width: 100px;
}

.flow-table td {
    text-align: center;
}

.vital-high {
    color: var(--danger-color);
    font-weight: 700;
}

.vital-low {
    color: var(--warning-color);
    font-weight: 700;
}

.vital-normal {
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .patient-banner {
        padding: 8px 20px;
    }
    
    .patient-name {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .emr-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
    }
    
    .emr-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .emr-content {
        margin-left: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Print Styles */
@media print {
    .emr-header,
    .emr-sidebar,
    .content-actions {
        display: none;
    }
    
    .emr-content {
        margin-left: 0;
        padding: 0;
    }
    
    .content-body {
        box-shadow: none;
    }
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}

.timeline-marker .timeline-day {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 auto 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.timeline-critical .timeline-marker .timeline-day {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.timeline-stable .timeline-marker .timeline-day {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.timeline-improving .timeline-marker .timeline-day {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.timeline-recovery .timeline-marker .timeline-day {
    background: linear-gradient(135deg, #28a745, #218838);
}

.timeline-discharge .timeline-marker .timeline-day {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.nihss-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.timeline-summary {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.btn-view-detail {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-view-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.timeline-connector {
    position: absolute;
    left: 60px;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-top: -20px;
}

/* Date Filter Buttons */
.date-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.date-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.date-btn:hover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2);
}

.date-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}


