/* 全局樣式 */
body {
    font-family: 'Microsoft JhengHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 導航欄樣式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片樣式 */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    font-weight: bold;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

/* 圖表容器 */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

/* 表格樣式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* 警告框樣式 */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}

/* 頁腳樣式 */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

/* 自定義顏色 */
.bg-primary {
    background-color: #1565c0 !important;
}

.text-primary {
    color: #1565c0 !important;
}

/* 動畫效果 */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 滾動導航效果 */
html {
    scroll-behavior: smooth;
}

/* 圖表標題樣式 */
.chart-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* 數據標籤樣式 */
.data-label {
    font-weight: bold;
    color: #1565c0;
}

/* 高亮顯示 */
.highlight {
    background-color: #fff9c4;
    padding: 2px 5px;
    border-radius: 3px;
}
