/* 커스텀 스타일 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 테이블 호버 효과 */
table tbody tr {
    transition: background-color 0.15s ease;
}

/* 버튼 호버 효과 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* 입력 필드 포커스 */
input:focus, select:focus {
    outline: none;
}

/* 카드 호버 효과 */
.bg-white.rounded-lg.shadow-md {
    transition: box-shadow 0.2s ease;
}

.bg-white.rounded-lg.shadow-md:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 로딩 애니메이션 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 차트 컨테이너 */
#timeseriesChart {
    position: relative;
    height: 400px;
    margin-top: 1rem;
}

/* 반응형 테이블 */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-white.rounded-lg {
    animation: fadeIn 0.3s ease-out;
}
