:root {
            --primary-bg: #0a0a0a;
            --secondary-bg: #151515;
            --tertiary-bg: #1e1e1e;
            --accent-blue: #4a9eff;
            --accent-green: #00ff88;
            --accent-orange: #ff6b35;
            --accent-red: #ff4444;
            --accent-purple: #b967ff;
            --accent-yellow: #ffd700;
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --text-muted: #666666;
            --border-color: #333333;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--primary-bg);
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
        }

        .container {
            display: grid;
            grid-template-columns: 280px 1fr 320px;
            grid-template-rows: 60px 1fr 300px;
            height: 100vh;
            gap: 1px;
            background: var(--border-color);
        }

        .container.bottom-panel-collapsed {
            grid-template-rows: 60px 1fr 40px;
        }

        /* Header */
        .header {
            grid-column: 1 / -1;
            background: var(--secondary-bg);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .logo {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo::before {
            content: "●";
            color: var(--accent-green);
            font-size: 24px;
        }

        .demo-badge {
            background: var(--accent-purple);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 10px;
        }

        /* Sidebars */
        .sidebar {
            background: var(--secondary-bg);
            padding: 20px;
            overflow-y: auto;
            border-right: 1px solid var(--border-color);
        }

        .left-sidebar {
            grid-row: 2;
        }

        .right-sidebar {
            grid-row: 2;
            border-right: none;
            border-left: 1px solid var(--border-color);
        }

        .panel {
            background: var(--tertiary-bg);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
        }

        .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .panel-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Main Content */
        .main-content {
            grid-column: 2;
            grid-row: 2;
            background: var(--primary-bg);
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        /* Main Content Tabs */
        .main-tabs {
            display: flex;
            background: var(--tertiary-bg);
            padding: 0 20px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .main-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .main-tab.active {
            color: var(--accent-green);
            border-bottom-color: var(--accent-green);
        }

        .main-tab-content {
            flex: 1;
            padding: 0;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        /* Wheels Panel Styles */
        .wheels-panel {
            background: var(--secondary-bg);
            padding: 15px;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            gap: 15px;
            overflow: hidden;
        }

        /* Wheels Header Section */
        .wheels-header {
            text-align: left;
            display: flex;
            align-items: center;
            flex-shrink: 0;
            height: 40px;
            padding: 0 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .wheels-title {
            text-align: left;
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Wheels Main Content Area */
        .wheels-main-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex: 1;
            min-height: 0;
            overflow: hidden;
            padding: 0 5px;
        }

        /* Wheels Grid - Top Section */
        .wheels-section {
            flex-shrink: 0;
            min-height: 420px;
            margin-bottom: 1px;
        }

        .axles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            height: 100%;
            padding-top: 2px;
        }

        .axle-column {
            display: flex;
            flex-direction: column;
            gap: 10px;
            height: 100%;
        }

        .axle-card {
            background: var(--tertiary-bg);
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex: 1;
            min-height: 0;
        }

        .axle-card:hover {
            transform: translateY(-2px);
            border-color: var(--accent-blue);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .axle-header {
            text-align: center;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
        }

        .axle-name {
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .front-axle-title { color: #4a9eff; }
        .middle-axle-title { color: #b967ff; }
        .rear-axle-title { color: #ff6b35; }

        .driver-info {
            background: rgba(255, 255, 255, 0.03);
            padding: 8px;
            border-radius: 5px;
            border: 1px solid var(--border-color);
            margin-top: 6px;
        }

        .driver-title {
            font-size: 11px;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 4px;
            font-weight: 600;
        }

        .driver-params {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3px;
            font-size: 9px;
        }

        .driver-param {
            width: 70px;
            display: flex;
            justify-content: space-between;
            color: var(--text-secondary);
        }

        .param-name {
            color: var(--text-muted);
        }

        .param-value {
            color: var(--text-primary);
            font-weight: 600;
        }

        .control-mode {
            background: rgba(255, 255, 255, 0.05);
            padding: 6px;
            border-radius: 5px;
            border: 1px solid var(--border-color);
            margin-top: 5px;
            text-align: center;
        }

        .mode-label {
            font-size: 9px;
            color: var(--text-muted);
            margin-bottom: 2px;
            font-weight: 600;
        }

        .mode-value {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 5px;
            border-radius: 3px;
            display: inline-block;
        }

        .mode-velocity {
            background: rgba(74, 158, 255, 0.2);
            color: #4a9eff;
            border: 1px solid #4a9eff;
        }

        .mode-position {
            background: rgba(185, 103, 255, 0.2);
            color: #b967ff;
            border: 1px solid #b967ff;
        }

        .mode-idle {
            background: rgba(255, 107, 53, 0.2);
            color: #ff6b35;
            border: 1px solid #ff6b35;
        }

        .wheels-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1;
        }

        .wheel-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 10px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1;
        }

        .wheel-card:hover {
            border-color: var(--accent-blue);
            box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
        }

        .wheel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .wheel-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .wheel-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .indicator-good { 
            background: var(--accent-green);
            box-shadow: 0 0 4px var(--accent-green);
        }
        .indicator-normal { 
            background: var(--accent-blue);
            box-shadow: 0 0 4px var(--accent-blue);
        }
        .warning {
            background: #ff353500;
        }
        .indicator-warning { 
            background: var(--accent-orange);
            box-shadow: 0 0 4px var(--accent-orange);
        }
        .indicator-critical { 
            background: var(--accent-red);
            box-shadow: 0 0 4px var(--accent-red);
            animation: pulse 2s infinite;
        }

        .wheel-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .wheel-visual {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            position: relative;
            border: 2px solid var(--border-color);
            background: var(--secondary-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .wheel-inner {
            width: 80%;
            height: 80%;
            border-radius: 50%;
            position: relative;
            background: var(--tertiary-bg);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wheel-spoke {
            position: absolute;
            width: 1.5px;
            height: 100%;
            background: var(--text-muted);
            transform-origin: center;
        }

        .wheel-params {
            display: grid;
            grid-template-columns: 1fr;
            gap: 4px;
            flex: 1;
        }

        .wheel-param {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
        }

        .wheel-param-name {
            color: var(--text-muted);
            font-weight: 600;
        }

        .wheel-param-value {
            color: var(--text-primary);
            font-weight: 700;
            font-size: 10px;
        }

        .wheel-param-value.good { color: var(--accent-green); }
        .wheel-param-value.warning { color: var(--accent-orange); }
        .wheel-param-value.critical { 
            color: var(--accent-red);
            animation: glow 2s infinite;
        }

        .direction-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 3px;
        }

        .direction-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .forward {
            background: var(--accent-green);
            box-shadow: 0 0 4px var(--accent-green);
        }

        .backward {
            background: var(--accent-red);
            box-shadow: 0 0 4px var(--accent-red);
        }

        .direction-text {
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Charts Section - Bottom */
        .charts-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            gap: 10px;
            margin-top: 5px;
        }

        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            flex: 1;
            min-height: 0;
        }

        .chart-section {
            height: 100%;
            background: var(--tertiary-bg);
            padding: 12px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            flex-shrink: 0;
        }

        .chart-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .chart-legend {
            display: flex;
            gap: 8px;
            font-size: 10px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
            transition: background 0.2s;
            font-weight: 600;
        }

        .legend-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .legend-color {
            width: 8px;
            height: 8px;
            border-radius: 2px;
        }

        .front-axle { background: #4a9eff; }
        .middle-axle { background: #b967ff; }
        .rear-axle { background: #ff6b35; }

        .chart-container {
            height: calc(100% - 25px);
            position: relative;
            min-height: 0;
            flex: 1;
        }

        /* Solar Panels Panel Styles - ADDED */
        .solar-panel-panel {
            background: var(--secondary-bg);
            padding: 15px;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow-y: auto;
            box-shadow: none;
        }

        .solar-panel-header-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            height: 50px;
            padding: 0 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .solar-panel-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .solar-panel-subtitle {
            font-size: 12px;
            color: var(--accent-yellow);
            margin-top: 5px;
            font-weight: 600;
        }

        .solar-demo-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .solar-demo-btn {
            padding: 8px 16px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            height: 36px;
            font-weight: 600;
        }

        .solar-demo-btn:hover {
            background: var(--accent-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
        }

        /* Solar Panels Grid размер солнечных панелей*/
        .solar-panel-grid {
            width: 600px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .solar-panel-item {
            background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
            border: 2px solid var(--accent-yellow);
            border-radius: 10px;
            padding: 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            min-height: 180px;
            display: flex;
            flex-direction: column;
        }

        /* Rotated Panel Animation */
        .solar-panel-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, 
                transparent, 
                var(--accent-yellow), 
                var(--accent-green),
                var(--accent-yellow),
                transparent
            );
            background-size: 200% 100%;
            animation: energyFlow 3s linear infinite;
        }

        .solar-panel-item.active {
            border-color: var(--accent-green);
            box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
        }

        .solar-panel-item.warning {
            border-color: var(--accent-orange);
            background: linear-gradient(135deg, #2a1a1a, #3a2a2a);
        }

        .solar-panel-item.warning::before {
            background: linear-gradient(90deg, 
                transparent, 
                var(--accent-orange), 
                var(--accent-red),
                var(--accent-orange),
                transparent
            );
        }

        /* Single Line Solar Panel Header */
        .solar-cell-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            gap: 8px;
        }

        .solar-panel-name {
            font-size: 11px;
            font-weight: 700;
            color: var(--accent-yellow);
        }

        .solar-panel-model {
            font-size: 9px;
            color: var(--text-secondary);
            background: rgba(255, 215, 0, 0.1);
            padding: 1px 4px;
            border-radius: 3px;
            border: 1px solid var(--accent-yellow);
        }

        .solar-panel-status {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .solar-status-badge {
            font-size: 8px;
            padding: 2px 4px;
            border-radius: 6px;
            background: var(--accent-green);
            color: black;
            font-weight: 600;
        }

        .solar-status-badge.warning {
            background: var(--accent-orange);
        }

        .solar-health-indicator {
            width: 4px;
            height: 4px;
            border-radius: 50%;
        }

        .solar-health-excellent { background: var(--accent-green); }
        .solar-health-good { background: var(--accent-yellow); }
        .solar-health-fair { background: var(--accent-orange); }
        .solar-health-poor { background: var(--accent-red); }

        /* Small Square Solar Cells (8 rows x 4 columns) */
        .solar-cells-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: repeat(8, 1fr);
            gap: 1px;
            margin-bottom: 10px;
            padding: 8px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            flex: 1;
            aspect-ratio: 0.5;
        }

        .solar-cell {
            background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
            border: 0.5px solid #444466;
            border-radius: 1px;
            position: relative;
            overflow: hidden;
            aspect-ratio: 1;
            min-height: 4px;
            min-width: 4px;
            transition: all 0.5s ease;
        }

        /* Purple/Blue Theme Animations */
        .solar-cell::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(147, 112, 219, 0.3),
                rgba(100, 149, 237, 0.5),
                rgba(147, 112, 219, 0.3),
                transparent
            );
            transform: skewX(-15deg);
            transition: left 1.5s ease;
        }

        .solar-cell.active::before {
            left: 100%;
            animation: purpleShine 4s ease-in-out infinite;
        }

        .solar-cell::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(65, 105, 225, 0.15) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 1s ease;
        }

        .solar-cell.active::after {
            opacity: 0.7;
            animation: purplePulse 5s ease-in-out infinite;
        }

        .solar-cell:hover {
            transform: scale(1.06);
            z-index: 1;
            box-shadow: 0 0 6px rgba(147, 112, 219, 0.4);
            border-color: rgba(100, 149, 237, 0.6);
            background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
        }

        .solar-cell.active {
            background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
            border-color: rgba(147, 112, 219, 0.4);
            box-shadow: 
                inset 0 0 8px rgba(138, 43, 226, 0.2),
                0 0 5px rgba(100, 149, 237, 0.3);
        }

        /* System Statistics */
        .solar-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .solar-stat-card {
            background: var(--secondary-bg);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .solar-stat-card.highlight {
            border-color: var(--accent-yellow);
            background: linear-gradient(135deg, #2a2a1a, #1a1a0a);
        }

        .solar-stat-value {
            font-size: 24px;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .solar-stat-unit {
            font-size: 14px;
            color: var(--text-muted);
        }

        .solar-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .solar-stat-trend {
            font-size: 10px;
            margin-left: 5px;
            padding: 2px 6px;
            border-radius: 10px;
        }

        .solar-trend-up { background: var(--accent-green); color: black; }
        .solar-trend-down { background: var(--accent-red); color: white; }
        .solar-trend-stable { background: var(--text-muted); color: white; }

        /* Efficiency Chart */
        .solar-performance-container {
            background: var(--secondary-bg);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .solar-performance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .solar-performance-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .solar-chart-container {
            height: 200px;
            position: relative;
        }

        /* Analytical Sensors Panel Styles */
        .analytical-sensors-panel {
            background: var(--secondary-bg);
            padding: 15px;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow: hidden;
            box-shadow: none;
        }

        .analytical-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            height: 50px;
            padding: 0 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .analytical-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .analytical-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .analytical-control-btn {
            padding: 8px 16px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            height: 36px;
            font-weight: 600;
        }

        .analytical-control-btn:hover {
            background: var(--accent-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
        }

        .analytical-demo-btn {
            background: var(--accent-purple);
            color: white;
        }

        .analytical-stop-btn {
            background: var(--accent-red);
            color: white;
        }

        .analytical-time-select {
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            min-width: 120px;
            height: 36px;
            font-weight: 600;
        }

        /* Sensors Grid - Top Section */
        .analytical-sensors-section {
            flex-shrink: 0;
            height: 240px;
        }

        .analytical-sensors-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            height: 100%;
        }

        .analytical-sensor-card {
            background: var(--tertiary-bg);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .analytical-sensor-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-blue);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .analytical-sensor-card.critical {
            border-color: var(--accent-red);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 68, 68, 0.15));
        }

        .analytical-sensor-card.warning {
            border-color: var(--accent-orange);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 107, 53, 0.15));
        }

        .analytical-sensor-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .analytical-sensor-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .analytical-sensor-status {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .analytical-indicator-good { 
            background: var(--accent-green);
            box-shadow: 0 0 8px var(--accent-green);
        }
        .analytical-indicator-normal { 
            background: var(--accent-blue);
            box-shadow: 0 0 8px var(--accent-blue);
        }
        .analytical-indicator-warning { 
            background: var(--accent-orange);
            box-shadow: 0 0 8px var(--accent-orange);
        }
        .analytical-indicator-critical { 
            background: var(--accent-red);
            box-shadow: 0 0 8px var(--accent-red);
            animation: pulse 2s infinite;
        }

        .analytical-sensor-value-container {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 8px;
        }

        .analytical-sensor-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .analytical-sensor-unit {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .analytical-sensor-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .analytical-sensor-trend {
            font-size: 12px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
        }

        .analytical-trend-up { color: var(--accent-green); }
        .analytical-trend-down { color: var(--accent-red); }
        .analytical-trend-stable { color: var(--text-muted); }

        .analytical-sensor-location {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Special Sensor Styles */
        .wind-direction {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .wind-arrow {
            transition: transform 0.3s ease;
            font-size: 18px;
        }

        .air-quality-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quality-level {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 6px;
            background: var(--accent-green);
            color: black;
            font-weight: 700;
        }

        .quality-level.moderate { background: var(--accent-yellow); }
        .quality-level.unhealthy { background: var(--accent-orange); }
        .quality-level.hazardous { background: var(--accent-red); color: white; }

        .rain-intensity {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rain-drops {
            display: flex;
            gap: 2px;
        }

        .rain-drop {
            width: 3px;
            height: 8px;
            background: var(--accent-blue);
            border-radius: 2px;
            opacity: 0.3;
        }

        .rain-drop.active {
            opacity: 1;
        }

        .analytical-alert-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--accent-red);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 6px;
            animation: pulse 1.5s infinite;
            font-weight: 700;
        }

        /* Charts Section - Bottom */
        .analytical-charts-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            gap: 16px;
        }

        .analytical-charts-row {
            padding-top: 30px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            flex: 1;
            min-height: 0;
        }

        .analytical-chart-section {
            background: var(--tertiary-bg);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .analytical-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-shrink: 0;
        }

        .analytical-chart-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .analytical-chart-legend {
            display: flex;
            gap: 12px;
            font-size: 12px;
        }

        .analytical-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s;
            font-weight: 600;
        }

        .analytical-legend-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .analytical-legend-color {
            width: 10px;
            height: 10px;
            border-radius: 2px;
        }

        .air-temp { background: #4a9eff; }
        .wind-speed { background: #b967ff; }
        .air-quality { background: #ff6b35; }
        .radiation { background: #ffd700; }
        .humidity { background: #00ff88; }
        .rain { background: #00bcd4; }

        .analytical-chart-container {
            height: calc(100% - 30px);
            position: relative;
            min-height: 0;
            flex: 1;
        }

        /* Status Colors */
        .analytical-sensor-value.good { color: var(--accent-green); }
        .analytical-sensor-value.warning { color: var(--accent-orange); }
        .analytical-sensor-value.critical { 
            color: var(--accent-red);
            animation: glow 2s infinite;
        }

        /* Bottom Panel */
        .bottom-panel {
            grid-column: 1 / -1;
            background: var(--secondary-bg);
            border-top: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 300px;
            transition: height 0.3s ease;
            overflow: hidden;
        }

        .bottom-panel.collapsed {
            height: 40px;
        }

        .bottom-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            height: 40px;
            background: var(--tertiary-bg);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .bottom-panel-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .collapse-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 18px;
            padding: 0 8px;
            transition: color 0.2s;
        }

        .collapse-btn:hover {
            color: var(--accent-green);
        }

        .panel-tabs {
            display: flex;
            background: var(--tertiary-bg);
            padding: 0 20px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .tab {
            padding: 12px 24px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .tab.active {
            color: var(--accent-green);
            border-bottom-color: var(--accent-green);
        }

        .tab-content {
            flex: 1;
            overflow-y: auto;
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* System Status */
        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .metric-card {
            background: var(--tertiary-bg);
            padding: 12px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }

        .metric-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .metric-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .metric-unit {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 4px;
        }

        /* Battery Status */
        .battery-container {
            background: var(--tertiary-bg);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .battery-level {
            height: 120px;
            background: #1a1a1a;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .battery-fill {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, var(--accent-green), #00cc66);
            transition: height 0.3s ease;
        }

        .battery-percentage {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            font-weight: bold;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .battery-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .battery-data-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            min-height: 50px;
            justify-content: center;
        }

        .battery-data-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .battery-data-label {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        /* Logs */
        .logs-container {
            background: var(--tertiary-bg);
            border-radius: 6px;
            padding: 15px;
            height: 100%;
            overflow-y: auto;
            font-family: 'Courier New', monospace;
            font-size: 12px;
        }

        .log-entry {
            padding: 4px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .log-time {
            color: var(--text-muted);
            margin-right: 10px;
        }

        .log-info { color: var(--accent-blue); }
        .log-warn { color: var(--accent-orange); }
        .log-error { color: var(--accent-red); }
        .log-success { color: var(--accent-green); }

        /* Camera System Styles - MODIFIED */
        .camera-system-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 10px;
        }

        /* REMOVED: .camera-header - Убрали заголовок камер */

        /* Cameras Grid - MODIFIED: уменьшили окна камер и сделали в одну строку */
        .cameras-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: 1fr;
            gap: 4px;
            height: 180px;
        }

        .camera {
            background: var(--tertiary-bg);
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }

        .video-container {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .video-feed {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            background: #1a1a1a;
        }

        .video-placeholder {
            width: 100%;
            height: 100%;
            background: #1a1a1a;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 11px;
        }

        /* Overlay elements */
        .camera-info {
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 10px;
        }

        .camera-name {
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 600;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .online { background: var(--accent-green); }
        .warning { background: #ff353500; }
        .critical { 
            background: #ff444400;
            animation: pulse 1.5s infinite;
        }

        .camera-specs {
            color: var(--text-secondary);
            font-size: 9px;
        }

        .zoom-controls {
            position: absolute;
            bottom: 4px;
            left: 4px;
            display: flex;
            align-items: center;
            gap: 3px;
            opacity: 0;
            transition: opacity 0.3s ease;
            background: rgba(0,0,0,0.7);
            padding: 2px 4px;
            border-radius: 2px;
        }

        .camera:hover .zoom-controls {
            opacity: 1;
        }

        .zoom-btn {
            width: 16px;
            height: 16px;
            background: rgba(255,255,255,0.1);
            border: none;
            color: white;
            border-radius: 1px;
            font-size: 9px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .zoom-btn:hover {
            background: var(--accent-blue);
        }

        .zoom-value {
            font-size: 9px;
            min-width: 25px;
            text-align: center;
            font-weight: 600;
        }

        .fullscreen-btn {
            position: absolute;
            bottom: 4px;
            right: 4px;
            width: 16px;
            height: 16px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 1px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .camera:hover .fullscreen-btn {
            opacity: 1;
        }

        .fullscreen-btn:hover {
            background: var(--accent-blue);
        }

        .fullscreen-btn svg {
            width: 10px;
            height: 10px;
        }

        .alert-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            background: var(--accent-red);
            color: white;
            font-size: 8px;
            padding: 1px 3px;
            border-radius: 2px;
            animation: pulse 1.5s infinite;
        }

        /* Fullscreen mode */
        .fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1000;
            background: black;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fullscreen .video-container {
            width: 95%;
            height: 95%;
        }

        .fullscreen-controls {
            position: absolute;
            bottom: 20px;
            display: flex;
            gap: 8px;
            background: rgba(0,0,0,0.8);
            padding: 6px 12px;
            border-radius: 4px;
        }

        /* Upload modal */
        .upload-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .upload-content {
            background: var(--tertiary-bg);
            padding: 20px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            max-width: 400px;
            width: 90%;
        }

        .upload-title {
            font-size: 16px;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .upload-instructions {
            margin-bottom: 16px;
            color: var(--text-secondary);
            line-height: 1.4;
            font-size: 12px;
        }

        .upload-buttons {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        /* Dispersion Module Styles */
        .dispersion-panel-integrated {
            background: var(--secondary-bg);
            padding: 15px;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow: hidden;
            box-shadow: none;
        }

        .dispersion-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            height: 50px;
            padding: 0 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .dispersion-panel-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .dispersion-panel-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .dispersion-control-btn {
            padding: 8px 16px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            height: 36px;
            font-weight: 600;
        }

        .dispersion-control-btn:hover {
            background: var(--accent-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
        }

        .dispersion-demo-btn {
            background: var(--accent-purple);
            color: white;
        }

        .dispersion-stop-btn {
            background: var(--accent-red);
            color: white;
        }

        .dispersion-time-select {
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            min-width: 120px;
            height: 36px;
            font-weight: 600;
        }

        .dispersion-main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            flex: 1;
            min-height: 0;
        }

        .dispersion-left-column, .dispersion-right-column {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Sensor Cards */
        .dispersion-sensors-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .dispersion-sensor-card {
            background: var(--tertiary-bg);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-sensor-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-blue);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .dispersion-sensor-card.critical {
            border-color: var(--accent-red);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 68, 68, 0.15));
        }

        .dispersion-sensor-card.warning {
            border-color: var(--accent-orange);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 107, 53, 0.15));
        }

        .dispersion-sensor-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .dispersion-sensor-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-sensor-status {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dispersion-indicator-good { 
            background: var(--accent-green);
            box-shadow: 0 0 8px var(--accent-green);
        }
        .dispersion-indicator-normal { 
            background: var(--accent-blue);
            box-shadow: 0 0 8px var(--accent-blue);
        }
        .dispersion-indicator-warning { 
            background: var(--accent-orange);
            box-shadow: 0 0 8px var(--accent-orange);
        }
        .dispersion-indicator-critical { 
            background: var(--accent-red);
            box-shadow: 0 0 8px var(--accent-red);
            animation: pulse 2s infinite;
        }

        .dispersion-sensor-value-container {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 8px;
        }

        .dispersion-sensor-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .dispersion-sensor-unit {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .dispersion-sensor-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .dispersion-sensor-trend {
            font-size: 12px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
        }

        .dispersion-trend-up { color: var(--accent-green); }
        .dispersion-trend-down { color: var(--accent-red); }
        .dispersion-trend-stable { color: var(--text-muted); }

        .dispersion-sensor-location {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* Tank & Mixer Visualization */
        .dispersion-tank-mixer-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-tank-mixer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .dispersion-tank-mixer-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-tank-mixer-controls {
            display: flex;
            gap: 8px;
        }

        .dispersion-tank-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .dispersion-tank-btn:hover {
            background: var(--accent-blue);
            color: white;
        }

        .dispersion-tank-mixer-visualization {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        .dispersion-tank-container {
            width: 120px;
            height: 200px;
            background: var(--secondary-bg);
            border: 3px solid var(--border-color);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }

        .dispersion-tank-liquid {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: linear-gradient(to top, #1a5fb4, #4a9eff);
            transition: height 0.5s ease;
            border-radius: 5px;
        }

        .dispersion-tank-pressure {
            position: absolute;
            top: 10px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-orange);
            text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
        }

        .dispersion-tank-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-left: 20px;
        }

        .dispersion-tank-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--accent-blue);
        }

        .dispersion-tank-label {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .dispersion-mixer-container {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--secondary-bg);
            border: 2px solid var(--border-color);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .dispersion-mixer.active .dispersion-mixer-container {
            border-color: var(--accent-green);
            animation: rotate 2s linear infinite;
        }

        .dispersion-mixer-blades {
            width: 60px;
            height: 8px;
            background: var(--accent-green);
            border-radius: 4px;
            position: absolute;
        }

        .dispersion-mixer-blades:nth-child(2) {
            transform: rotate(60deg);
        }

        .dispersion-mixer-blades:nth-child(3) {
            transform: rotate(120deg);
        }

        .dispersion-mixer-status {
            text-align: center;
            margin-top: 12px;
            font-size: 14px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 6px;
            background: var(--secondary-bg);
        }

        .dispersion-mixer.active .dispersion-mixer-status {
            background: rgba(0, 255, 136, 0.1);
            color: var(--accent-green);
        }

        /* Doser Section */
        .dispersion-doser-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-doser-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .dispersion-doser-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-doser-controls {
            display: flex;
            gap: 8px;
        }

        .dispersion-doser-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .dispersion-doser-btn:hover {
            background: var(--accent-purple);
            color: white;
        }

        .dispersion-doser-components {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            flex: 1;
        }

        .dispersion-component-type {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .dispersion-component-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .dispersion-component-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .dispersion-component {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: var(--secondary-bg);
            border-radius: 6px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .dispersion-component.active {
            border-color: var(--accent-green);
            background: linear-gradient(135deg, var(--secondary-bg), rgba(0, 255, 136, 0.1));
        }

        .dispersion-component-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .dispersion-component-value {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-green);
        }

        .dispersion-liquid-component {
            border-left: 3px solid var(--accent-blue);
        }

        .dispersion-powder-component {
            border-left: 3px solid var(--accent-orange);
        }

        /* Boom Section */
        .dispersion-boom-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-boom-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .dispersion-boom-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-boom-controls {
            display: flex;
            gap: 8px;
        }

        .dispersion-boom-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .dispersion-boom-btn:hover {
            background: var(--accent-orange);
            color: white;
        }

        .dispersion-boom-visualization {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .dispersion-boom-container {
            width: 100%;
            height: 120px;
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        .dispersion-boom-base {
            width: 80px;
            height: 20px;
            background: var(--text-muted);
            border-radius: 4px 4px 0 0;
            z-index: 1;
        }

        .dispersion-boom-section-visual {
            position: absolute;
            bottom: 20px;
            background: var(--accent-blue);
            border-radius: 4px 4px 0 0;
            transition: all 0.5s ease;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            color: white;
            font-weight: 700;
            font-size: 12px;
            padding-top: 4px;
        }

        .dispersion-boom-section-1 {
            width: 100px;
            height: 40px;
            background: linear-gradient(to bottom, #3a5a8c, #2a4a7c);
            z-index: 4;
        }

        .dispersion-boom-section-2 {
            width: 80px;
            height: 50px;
            background: linear-gradient(to bottom, #2a4a7c, #1a3a6c);
            z-index: 3;
            transition-delay: 0.1s;
        }

        .dispersion-boom-section-3 {
            width: 60px;
            height: 60px;
            background: linear-gradient(to bottom, #1a3a6c, #0a2a5c);
            z-index: 2;
            transition-delay: 0.2s;
        }

        .dispersion-boom-nozzles {
            position: absolute;
            bottom: 80px;
            width: 100px;
            height: 20px;
            background: var(--accent-orange);
            border-radius: 10px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 5;
        }

        .dispersion-nozzle {
            width: 6px;
            height: 6px;
            background: #333;
            border-radius: 50%;
        }

        .dispersion-boom-spray {
            position: absolute;
            bottom: 100px;
            width: 120px;
            height: 40px;
            background: linear-gradient(to top, rgba(74, 158, 255, 0.3), transparent);
            border-radius: 60px 60px 0 0;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .dispersion-boom-active .dispersion-boom-spray {
            opacity: 0.7;
        }

        .dispersion-boom-info {
            margin-top: 16px;
            text-align: center;
        }

        .dispersion-boom-value {
            font-size: 20px;
            font-weight: 800;
            color: var(--accent-blue);
            margin-bottom: 8px;
        }

        .dispersion-boom-slider {
            width: 100%;
            margin: 8px 0;
        }

        /* Camera Section */
        .dispersion-camera-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-camera-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .dispersion-camera-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-camera-controls {
            display: flex;
            gap: 8px;
        }

        .dispersion-camera-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .dispersion-camera-btn:hover {
            background: var(--accent-purple);
            color: white;
        }

        .dispersion-camera-visualization {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary-bg);
            border-radius: 8px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .dispersion-camera-feed {
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #1a1a2e, #16213e);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .dispersion-camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%),
                linear-gradient(transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
            pointer-events: none;
        }

        .dispersion-camera-status {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0,0,0,0.7);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            color: var(--accent-green);
            font-weight: 600;
        }

        .dispersion-recording-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 12px;
            height: 12px;
            background: var(--accent-red);
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }

        /* Charts Section */
        .dispersion-charts-section {
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .dispersion-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .dispersion-chart-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .dispersion-chart-legend {
            display: flex;
            gap: 12px;
            font-size: 12px;
        }

        .dispersion-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s;
            font-weight: 600;
        }

        .dispersion-legend-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .dispersion-legend-color {
            width: 10px;
            height: 10px;
            border-radius: 2px;
        }

        .dispersion-pressure-color { background: #4a9eff; }
        .dispersion-flow-color { background: #b967ff; }
        .dispersion-level-color { background: #00ff88; }

        .dispersion-chart-container {
            height: 200px;
            position: relative;
        }

        /* Status Colors */
        .dispersion-sensor-value.good { color: var(--accent-green); }
        .dispersion-sensor-value.warning { color: var(--accent-orange); }
        .dispersion-sensor-value.critical { 
            color: var(--accent-red);
            animation: glow 2s infinite;
        }

        .dispersion-alert-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--accent-red);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 6px;
            animation: pulse 1.5s infinite;
            font-weight: 700;
        }

        /* Pneumatic System Styles */
        .pneumatic-panel {
            background: var(--secondary-bg);
            padding: 15px;
            height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            overflow: hidden;
            box-shadow: none;
        }

        .pneumatic-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            height: 40px;
            padding: 0 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .pneumatic-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .pneumatic-main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            flex: 1;
            min-height: 0;
        }

        .pneumatic-left-column, .pneumatic-right-column {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .pneumatic-sensors-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .pneumatic-sensor-card {
            background: var(--tertiary-bg);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .pneumatic-sensor-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-blue);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .pneumatic-sensor-card.critical {
            border-color: var(--accent-red);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 68, 68, 0.15));
        }

        .pneumatic-sensor-card.warning {
            border-color: var(--accent-orange);
            background: linear-gradient(135deg, var(--tertiary-bg), rgba(255, 107, 53, 0.15));
        }

        .pneumatic-sensor-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .pneumatic-sensor-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-sensor-status {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .pneumatic-indicator-good { 
            background: var(--accent-green);
            box-shadow: 0 0 8px var(--accent-green);
        }
        .pneumatic-indicator-normal { 
            background: var(--accent-blue);
            box-shadow: 0 0 8px var(--accent-blue);
        }
        .pneumatic-indicator-warning { 
            background: var(--accent-orange);
            box-shadow: 0 0 8px var(--accent-orange);
        }
        .pneumatic-indicator-critical { 
            background: var(--accent-red);
            box-shadow: 0 0 8px var(--accent-red);
            animation: pulse 2s infinite;
        }

        .pneumatic-sensor-value-container {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 8px;
        }

        .pneumatic-sensor-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .pneumatic-sensor-unit {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .pneumatic-sensor-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .pneumatic-sensor-trend {
            font-size: 12px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
        }

        .pneumatic-trend-up { color: var(--accent-green); }
        .pneumatic-trend-down { color: var(--accent-red); }
        .pneumatic-trend-stable { color: var(--text-muted); }

        .pneumatic-sensor-location {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .pneumatic-compressor-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
        }

        .pneumatic-compressor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .pneumatic-compressor-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-compressor-controls {
            display: flex;
            gap: 8px;
        }

        .pneumatic-compressor-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .pneumatic-compressor-btn:hover {
            background: var(--accent-blue);
            color: white;
        }

        .pneumatic-compressor-visualization {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        .pneumatic-compressor-container {
            width: 100px;
            height: 100px;
            background: var(--secondary-bg);
            border: 3px solid var(--border-color);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pneumatic-compressor-active .pneumatic-compressor-container {
            border-color: var(--accent-green);
            animation: pulse 2s infinite;
        }

        .pneumatic-compressor-icon {
            font-size: 32px;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        .pneumatic-compressor-active .pneumatic-compressor-icon {
            color: var(--accent-green);
            animation: rotate 2s linear infinite;
        }

        .pneumatic-compressor-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-left: 20px;
        }

        .pneumatic-compressor-value {
            font-size: 20px;
            font-weight: 800;
            color: var(--accent-blue);
        }

        .pneumatic-compressor-label {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .pneumatic-actuators-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
        }

        .pneumatic-actuators-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .pneumatic-actuators-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-actuators-controls {
            display: flex;
            gap: 8px;
        }

        .pneumatic-actuators-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .pneumatic-actuators-btn:hover {
            background: var(--accent-purple);
            color: white;
        }

        .pneumatic-actuators-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            flex: 1;
        }

        .pneumatic-actuator-type {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .pneumatic-actuator-title {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .pneumatic-actuator-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .pneumatic-actuator {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: var(--secondary-bg);
            border-radius: 6px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .pneumatic-actuator.active {
            border-color: var(--accent-green);
            background: linear-gradient(135deg, var(--secondary-bg), rgba(0, 255, 136, 0.1));
        }

        .pneumatic-actuator.emergency {
            border-color: var(--accent-red);
            background: linear-gradient(135deg, var(--secondary-bg), rgba(255, 68, 68, 0.1));
        }

        .pneumatic-actuator-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .pneumatic-actuator-value {
            font-size: 12px;
            font-weight: 700;
            color: var(--accent-green);
        }

        .pneumatic-actuator.emergency .pneumatic-actuator-value {
            color: var(--accent-red);
            animation: pulse 1.5s infinite;
        }

        .pneumatic-solar-actuator {
            border-left: 3px solid var(--accent-blue);
        }

        .pneumatic-doser-actuator {
            border-left: 3px solid var(--accent-orange);
        }

        .pneumatic-boom-actuator {
            border-left: 3px solid var(--accent-yellow);
        }

        .pneumatic-valve-actuator {
            border-left: 3px solid var(--accent-purple);
        }

        .pneumatic-emergency-actuator {
            border-left: 3px solid var(--accent-red);
        }

        .pneumatic-airflow-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
        }

        .pneumatic-airflow-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .pneumatic-airflow-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-airflow-controls {
            display: flex;
            gap: 8px;
        }

        .pneumatic-airflow-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .pneumatic-airflow-btn:hover {
            background: var(--accent-orange);
            color: white;
        }

        .pneumatic-airflow-visualization {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .pneumatic-airflow-container {
            width: 100%;
            height: 80px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pneumatic-airflow-tube {
            width: 80%;
            height: 15px;
            background: var(--secondary-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            position: relative;
            overflow: hidden;
        }

        .pneumatic-airflow-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--accent-blue), #4a9eff);
            border-radius: 8px;
            transition: width 0.5s ease;
        }

        .pneumatic-airflow-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .pneumatic-particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: var(--accent-green);
            border-radius: 50%;
            opacity: 0;
        }

        .pneumatic-airflow-active .pneumatic-particle {
            animation: flowParticle 2s linear infinite;
        }

        .pneumatic-airflow-info {
            margin-top: 16px;
            text-align: center;
        }

        .pneumatic-airflow-value {
            font-size: 16px;
            font-weight: 800;
            color: var(--accent-blue);
            margin-bottom: 8px;
        }

        .pneumatic-animation-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
        }

        .pneumatic-animation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .pneumatic-animation-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-animation-controls {
            display: flex;
            gap: 8px;
        }

        .pneumatic-animation-btn {
            padding: 6px 12px;
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .pneumatic-animation-btn:hover {
            background: var(--accent-purple);
            color: white;
        }

        .pneumatic-animation-visualization {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary-bg);
            border-radius: 8px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .pneumatic-animation-content {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .pneumatic-cylinder {
            width: 25px;
            height: 80px;
            background: var(--tertiary-bg);
            border: 2px solid var(--border-color);
            border-radius: 4px;
            position: relative;
            margin: 0 8px;
        }

        .pneumatic-piston {
            position: absolute;
            width: 100%;
            height: 20px;
            background: var(--accent-blue);
            border-radius: 2px;
            transition: all 0.5s ease;
            bottom: 0;
        }

        .pneumatic-cylinder.active .pneumatic-piston {
            height: 60px;
            background: var(--accent-green);
        }

        .pneumatic-cylinder-label {
            position: absolute;
            bottom: -25px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .pneumatic-charts-section {
            display: flex;
            flex-direction: column;
            background: var(--tertiary-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 16px;
        }

        .pneumatic-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .pneumatic-chart-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .pneumatic-chart-legend {
            display: flex;
            gap: 12px;
            font-size: 10px;
        }

        .pneumatic-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s;
            font-weight: 600;
        }

        .pneumatic-legend-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .pneumatic-legend-color {
            width: 8px;
            height: 8px;
            border-radius: 2px;
        }

        .pneumatic-pressure-color { background: #4a9eff; }
        .pneumatic-flow-color { background: #b967ff; }
        .pneumatic-airflow-color { background: #00ff88; }

        .pneumatic-chart-container {
            height: 150px;
            position: relative;
        }

        .pneumatic-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .pneumatic-control-btn {
            padding: 8px 16px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            height: 32px;
            font-weight: 600;
        }

        .pneumatic-control-btn:hover {
            background: var(--accent-blue);
            color: white;
        }

        .pneumatic-demo-btn {
            background: var(--accent-purple);
            color: white;
        }

        .pneumatic-stop-btn {
            background: var(--accent-red);
            color: white;
        }

        .pneumatic-time-select {
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 12px;
            min-width: 100px;
            height: 32px;
            font-weight: 600;
        }

        .pneumatic-sensor-value.good { color: var(--accent-green); }
        .pneumatic-sensor-value.warning { color: var(--accent-orange); }
        .pneumatic-sensor-value.critical { 
            color: var(--accent-red);
            /* animation: glow 2s infinite;*/
        }

        .pneumatic-alert-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--accent-red);
            color: white;
            font-size: 8px;
            padding: 2px 6px;
            border-radius: 6px;
            animation: pulse 1.5s infinite;
            font-weight: 700;
        }

        /* Animation Keyframes */
        @keyframes pulse {
            0%, 100% { 
                opacity: 1;
                transform: scale(1);
            }
            50% { 
                opacity: 0.7;
                transform: scale(1.05);
            }
        }

        @keyframes glow {
            0%, 100% { text-shadow: 0 0 2px currentColor; }
            50% { text-shadow: 0 0 6px currentColor; }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes rotate-reverse {
            from { transform: rotate(0deg); }
            to { transform: rotate(-360deg); }
        }

        @keyframes flowParticle {
            0% {
                transform: translateX(-20px);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateX(calc(100% + 20px));
                opacity: 0;
            }
        }

        /* NEW ANIMATIONS - Purple/Blue Theme for Solar Panels */
        @keyframes energyFlow {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        @keyframes purpleShine {
            0%, 100% {
                opacity: 0;
                left: -100%;
            }
            25% {
                opacity: 0.6;
            }
            50% {
                opacity: 0.8;
            }
            75% {
                opacity: 0.4;
            }
            100% {
                left: 100%;
                opacity: 0;
            }
        }

        @keyframes purplePulse {
            0%, 100% {
                opacity: 0.5;
                transform: scale(1);
            }
            25% {
                opacity: 0.7;
                transform: scale(1.02);
            }
            50% {
                opacity: 0.9;
                transform: scale(1.01);
            }
            75% {
                opacity: 0.6;
                transform: scale(1.03);
            }
        }

        /* Add random animation delays for more natural look */
        .solar-cell:nth-child(4n+1) { animation-delay: 0.1s; }
        .solar-cell:nth-child(4n+2) { animation-delay: 0.3s; }
        .solar-cell:nth-child(4n+3) { animation-delay: 0.5s; }
        .solar-cell:nth-child(4n+4) { animation-delay: 0.7s; }

        @media (max-width: 1200px) {
            .cameras-grid {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(2, 1fr);
            }
            
            .axles-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .solar-panel-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .solar-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .cameras-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(3, 1fr);
            }
            
            .axles-grid {
                grid-template-columns: 1fr;
            }

            .solar-panel-grid {
                grid-template-columns: 1fr;
            }
            
            .solar-stats-grid {
                grid-template-columns: 1fr;
            }
        }