
        * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --bg: #0f172a; --card: #1e293b; --text: #f1f5f9; --sub: #64748b;
            --green: #10b981; --yellow: #f59e0b; --red: #ef4444; --blue: #3b82f6;
        }
        body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
        
        /* Header */
        .header {
            background: var(--card); padding: 15px 20px; position: sticky; top: 0; z-index: 100;
            display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
        .logo span { font-size: 1.5rem; }
        .stats { display: flex; gap: 15px; }
        .stat { text-align: center; padding: 8px 15px; background: rgba(255,255,255,0.05); border-radius: 8px; }
        .stat-val { font-size: 1.3rem; font-weight: 700; }
        .stat-lbl { font-size: 0.7rem; color: var(--sub); }
        .stat.normal .stat-val { color: var(--green); }
        .stat.warning .stat-val { color: var(--yellow); }
        .stat.danger .stat-val { color: var(--red); }

        /* Filter */
        .filter-bar {
            display: flex; gap: 10px; padding: 15px 20px; flex-wrap: wrap;
            max-width: 1400px; margin: 0 auto;
        }
        .filter-btn {
            padding: 8px 20px; border: none; border-radius: 20px; cursor: pointer;
            background: var(--card); color: var(--sub); transition: all 0.3s;
        }
        .filter-btn:hover, .filter-btn.active { background: var(--blue); color: #fff; }
        .search { flex: 1; min-width: 150px; padding: 8px 15px; border: none; border-radius: 20px; background: var(--card); color: var(--text); }

        /* Grid */
        .grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px; padding: 0 20px 100px; max-width: 1400px; margin: 0 auto;
        }

        /* Card */
        .card {
            background: var(--card); border-radius: 16px; padding: 20px;
            border-left: 4px solid var(--green); transition: transform 0.3s;
        }
        .card:hover { transform: translateY(-5px); }
        .card.warning { border-color: var(--yellow); }
        .card.danger { border-color: var(--red); animation: pulse 1.5s infinite; }
        @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 0 10px transparent; }}

        .card-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .card-title { font-size: 1rem; font-weight: 600; }
        .card-loc { font-size: 0.75rem; color: var(--sub); }
        .badge {
            padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600;
            background: rgba(16,185,129,0.2); color: var(--green);
        }
        .card.warning .badge { background: rgba(245,158,11,0.2); color: var(--yellow); }
        .card.danger .badge { background: rgba(239,68,68,0.2); color: var(--red); }

        .chart-row { display: flex; gap: 15px; align-items: center; }
        .gauge-chart { width: 100px; height: 100px; }
        .line-chart { flex: 1; height: 80px; }

        .card-info { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
        .info-item { text-align: center; }
        .info-val { font-size: 1rem; font-weight: 600; }
        .info-lbl { font-size: 0.65rem; color: var(--sub); }
        .info-item.min .info-val { color: var(--blue); }
        .info-item.max .info-val { color: var(--red); }

        .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
        .update-time { font-size: 0.7rem; color: var(--sub); }
        .actions { display: flex; gap: 5px; }
        .act-btn { width: 32px; height: 32px; border: none; border-radius: 8px; background: rgba(255,255,255,0.1); color: var(--sub); cursor: pointer; }
        .act-btn:hover { background: var(--blue); color: #fff; }

        /* Bottom Nav */
        .nav {
            position: fixed; bottom: 0; left: 0; right: 0; background: var(--card);
            display: flex; justify-content: space-around; padding: 10px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--sub); cursor: pointer; padding: 5px 15px; border-radius: 8px; }
        .nav-item:hover, .nav-item.active { color: var(--blue); background: rgba(59,130,246,0.1); }
        .nav-item span:first-child { font-size: 1.2rem; }
        .nav-item span:last-child { font-size: 0.65rem; }

        /* Modal */
        .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
        .modal.show { display: flex; }
        .modal-box { background: var(--card); border-radius: 20px; width: 100%; max-width: 450px; max-height: 90vh; overflow-y: auto; }
        .modal-head { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; }
        .modal-close { width: 35px; height: 35px; border: none; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--text); cursor: pointer; font-size: 1.2rem; }
        .modal-body { padding: 20px; }
        .detail-temp { text-align: center; font-size: 3rem; font-weight: 700; margin-bottom: 20px; }
        .detail-chart { height: 200px; margin-bottom: 20px; }
        .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .detail-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; text-align: center; }
        .detail-val { font-size: 1.3rem; font-weight: 600; }
        .detail-lbl { font-size: 0.75rem; color: var(--sub); }

        /* Alert */
        .alert { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; padding: 12px 20px; border-radius: 12px; display: none; gap: 10px; align-items: center; z-index: 150; }
        .alert.show { display: flex; }

        @media (max-width: 600px) {
            .header { flex-direction: column; align-items: stretch; }
            .stats { justify-content: space-between; }
            .grid { grid-template-columns: 1fr; }
            .chart-row { flex-direction: column; }
            .gauge-chart { width: 80px; height: 80px; }
        }
   