/* style.css */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
}

/* 상단 타이틀 스타일 */
h1 {
    font-weight: 700;
    color: #1e293b;
}

/* 카드 공통 디자인 */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* 모니터링 주요 지표 텍스트 */
.card-body .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.value-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    padding-top: 5px;
}

/* 상태별 색상 및 애니메이션 배지 효과 */
.status-normal {
    color: #10b981; /* 초록색 */
}

.status-warning {
    color: #ef4444; /* 빨간색 */
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.5; }
}

/* 마지막 업데이트 시간 스타일 */
#time {
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
}

/* 테이블 디자인 수정 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
    color: #334155;
}

/* 모바일 화면 최적화 조정 */
@media (max-width: 768px) {
    .value {
        font-size: 1.8rem;
    }
    .value-small {
        font-size: 1.3rem;
    }
}

/* style.css 맨 아래에 추가 */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px; /* 데스크톱 화면에서 차트가 가질 안정적인 높이 */
    margin-top: 15px;
}

/* 모바일 화면에서는 차트가 너무 답답하지 않게 높이를 살짝 줄여줍니다 */
@media (max-width: 768px) {
    .chart-container {
        height: 220px;
    }
}