/* 溫濕度監控系統樣式 */

/* 卡片動畫效果 */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 溫度卡片漸層背景 */
.temp-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* 濕度卡片漸層背景 */
.humi-gradient {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* 狀態卡片左邊框 */
.status-card {
    border-left: 4px solid;
}

/* 圖表容器 */
.chart-container {
    position: relative;
    height: 250px; /* 固定高度 */
    width: 100%;
}

/* 脈衝動畫 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 水平圖表佈局 */
.horizontal-chart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 狀態標籤樣式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

/* 時間按鈕樣式 */
.time-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.time-btn:hover {
    transform: translateY(-1px);
}

.time-btn.active {
    font-weight: 600;
}

/* 圖表工具提示樣式 */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
}

/* 載入動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 錯誤狀態樣式 */
.error-state {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* 警告狀態樣式 */
.warning-state {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* 成功狀態樣式 */
.success-state {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
} 