:root {
    --primary-color: #4a90e2;
    --success-color: #50c878;
    --info-color: #4a90e2;
    --temperature-color: #ff6b6b;
    --humidity-color: #4ecdc4;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --hot-color: #ff4757;
    --humid-color: #2e86de;
    --cold-color: #2e86de;
}

body {
    background-color: var(--bg-color);
    font-family: "Microsoft JhengHei", sans-serif;
    color: var(--text-primary);
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border: none;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 2px solid var(--primary-color) !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.card-header i {
    margin-right: 0.5rem;
    color: var(--primary-color) !important;
}

.navbar {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: #2c3e50 !important;
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #ffffff !important;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.list-group-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #e9ecef;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

.status-badge.success {
    background-color: #28a745;
    color: white;
}

.status-badge.warning {
    background-color: #ff9800;
    color: white;
}

.status-badge.danger {
    background-color: #dc3545;
    color: white;
}

.status-badge.info {
    background-color: #0d6efd;
    color: white;
}

.status-normal {
    background-color: #4CAF50;
}

.status-hot {
    background-color: #f44336;
}

.status-cold {
    background-color: #2196F3;
}

.status-humid {
    background-color: #9C27B0;
}

.status-warning {
    background-color: #FF9800;
}

.status-excellent {
    background-color: #00BCD4;
}

.status-good {
    background-color: #8BC34A;
}

.status-normal {
    color: var(--success-color);
    font-weight: 600;
}

.status-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.status-danger {
    color: var(--danger-color);
    font-weight: 600;
}

.status-hot {
    color: var(--hot-color);
    font-weight: 600;
}

.status-humid {
    color: var(--humid-color);
    font-weight: 600;
}

.status-cold {
    color: var(--cold-color);
    font-weight: 600;
}

.monitor-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.monitor-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 15px;
    font-weight: bold;
    color: #2c3e50;
}

.monitor-card .card-body {
    padding: 20px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.stat-box i {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-box.temperature i {
    color: #dc3545;
}

.stat-box.humidity i {
    color: #0d6efd;
}

.stat-box.wifi i {
    color: #6c757d;
}

.stat-box.status i {
    color: #28a745;
}

.stat-box h3 {
    font-size: 24px;
    margin: 10px 0;
    color: #2c3e50;
}

.stat-box p {
    margin: 0;
    color: #6c757d;
}

.chart-container {
    height: 200px;
    margin-top: 20px;
}

.table {
    margin-bottom: 0;
    color: var(--text-primary);
}

.table th {
    background-color: var(--bg-color);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

.table td {
    vertical-align: middle;
    border-color: var(--border-color);
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-title {
    color: #2c3e50;
    font-weight: bold;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .stat-box {
        margin-bottom: 10px;
    }
    
    .chart-container {
        height: 150px;
    }
} 