@import "https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Cairo:wght@400;600;700;800;900&display=swap";:root{--temax-bg:#080c18;--temax-bg-2:#0d1224;--temax-surface:#ffffff08;--temax-border:#ffffff14;--temax-border-h:#ffffff24;--temax-amber:#f5a623;--temax-amber-dim:#f5a62326;--temax-green:#0f8;--temax-green-dim:#00ff881f;--temax-blue:#70a1ff;--temax-blue-dim:#70a1ff1f;--temax-red:#ff4757;--temax-red-dim:#ff47571f;--temax-text:#e8edf5;--temax-text-2:#c8d0dc;--temax-text-muted:#8892a4;--temax-sidebar-w:220px;--temax-radius:16px;--temax-radius-sm:10px;--temax-font-mono:"Orbitron", monospace;--temax-font:"Cairo", sans-serif}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{font-family:var(--temax-font);background:var(--temax-bg);color:var(--temax-text);-webkit-font-smoothing:antialiased;direction:rtl;line-height:1.6}a{color:inherit;text-decoration:none}button{font-family:var(--temax-font);cursor:pointer}input,select,textarea{font-family:var(--temax-font)}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:99px}.temax-body{background:radial-gradient(ellipse 120% 60% at 10% 0%, #f5a6230f 0%, transparent 60%), radial-gradient(ellipse 80% 40% at 90% 100%, #70a1ff0d 0%, transparent 50%), var(--temax-bg);min-height:100vh;display:flex}.temax-sidebar{width:var(--temax-sidebar-w);border-left:1px solid var(--temax-border);background:#ffffff05;flex-direction:column;flex-shrink:0;height:100vh;padding:24px 0;display:flex;position:sticky;top:0;overflow-y:auto}.temax-brand{border-bottom:1px solid var(--temax-border);align-items:center;gap:12px;padding:0 20px 28px;display:flex}.temax-logo{background:linear-gradient(135deg, var(--temax-amber), #e8960f);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;font-size:20px;display:flex;box-shadow:0 4px 16px #f5a6234d}.temax-logo-text{font-family:var(--temax-font-mono);color:var(--temax-amber);letter-spacing:2px;font-size:15px;font-weight:900}.temax-logo-sub{color:var(--temax-text-muted);letter-spacing:3px;margin-top:1px;font-size:8px}.temax-nav{flex-direction:column;flex:1;gap:2px;padding:20px 12px;display:flex}.temax-nav-item{color:var(--temax-text-muted);border-radius:12px;align-items:center;gap:12px;padding:12px 14px;font-size:14px;font-weight:600;transition:all .2s;display:flex;position:relative}.temax-nav-item:hover{color:var(--temax-text-2);background:#ffffff0d}.temax-nav-item.active{background:var(--temax-amber-dim);color:var(--temax-amber)}.temax-nav-item.active:before{content:"";background:var(--temax-amber);border-radius:99px;width:3px;position:absolute;top:20%;bottom:20%;left:0}.temax-nav-icon{font-size:16px}.temax-badge{background:var(--temax-red);color:#fff;font-size:9px;font-weight:800;font-family:var(--temax-font-mono);border-radius:99px;margin-right:auto;padding:2px 7px}.temax-user-footer{border-top:1px solid var(--temax-border);align-items:center;gap:10px;padding:16px 20px;display:flex}.temax-avatar{color:#fff;background:linear-gradient(135deg,#70a1ff,#5352ed);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:14px;font-weight:800;display:flex}.temax-user-info{flex:1;min-width:0}.temax-user-name{color:var(--temax-text-2);white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:700;overflow:hidden}.temax-user-email{color:var(--temax-text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.temax-logout-btn{color:var(--temax-text-muted);background:0 0;border:none;padding:4px;font-size:16px;transition:color .2s}.temax-logout-btn:hover{color:var(--temax-red)}.temax-main{flex:1;min-width:0;padding:32px;overflow:auto}.temax-page-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:28px;display:flex}.temax-page-title{color:var(--temax-text);font-size:22px;font-weight:900;line-height:1.2}.temax-page-sub{color:var(--temax-text-muted);margin-top:4px;font-size:12px}.temax-live-badge{background:var(--temax-green-dim);font-family:var(--temax-font-mono);color:var(--temax-green);letter-spacing:2px;border:1px solid #00ff8840;border-radius:99px;align-items:center;gap:7px;padding:6px 14px;font-size:10px;font-weight:700;display:flex}.temax-live-dot{background:var(--temax-green);width:6px;height:6px;box-shadow:0 0 8px var(--temax-green);border-radius:50%;animation:1.5s infinite temaxPulse}.temax-summary-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:28px;display:grid}.temax-summary-card{background:var(--temax-surface);border:1px solid var(--temax-border);border-radius:var(--temax-radius);align-items:flex-start;gap:14px;padding:22px 24px;transition:border-color .2s,box-shadow .2s;display:flex}.temax-summary-card:hover{border-color:var(--temax-border-h);box-shadow:0 8px 30px #0000004d}.temax-summary-icon{margin-top:2px;font-size:20px}.temax-summary-label{color:var(--temax-text-muted);margin-bottom:6px;font-size:11px}.temax-summary-value{font-family:var(--temax-font-mono);letter-spacing:-1px;font-size:28px;font-weight:900;line-height:1}.temax-section-title{color:var(--temax-text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:14px;font-size:12px;font-weight:600}.temax-inverters-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;display:grid}.temax-inverter-card{background:var(--temax-surface);border:1px solid var(--temax-border);border-radius:var(--temax-radius);cursor:pointer;padding:18px 20px;transition:all .25s;display:block}.temax-inverter-card:hover{border-color:#f5a6234d;transform:translateY(-2px);box-shadow:0 8px 32px #0006}.temax-inv-header{align-items:center;gap:9px;margin-bottom:10px;display:flex}.temax-inv-serial{font-family:var(--temax-font-mono);color:var(--temax-text-muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:10px;overflow:hidden}.temax-inv-site{color:var(--temax-text-2);margin-bottom:14px;font-size:13px;font-weight:700}.temax-inv-metrics{gap:20px;margin-bottom:14px;display:flex}.temax-metric{flex-direction:column;gap:2px;display:flex}.temax-metric-label{color:var(--temax-text-muted);font-size:9px}.temax-metric-value{font-family:var(--temax-font-mono);font-size:16px;font-weight:700}.temax-inv-footer{color:var(--temax-text-muted);justify-content:space-between;margin-top:8px;font-size:10px;display:flex}.temax-soc-row{align-items:center;gap:8px;display:flex}.temax-soc-bar-track{background:#ffffff12;border-radius:99px;flex:1;height:6px;overflow:hidden}.temax-soc-bar-fill{border-radius:99px;height:100%;transition:width 1s;box-shadow:0 0 8px}.temax-soc-pct{color:var(--temax-text-muted);text-align:left;min-width:28px;font-size:10px}.temax-status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.temax-status-online{background:var(--temax-green);box-shadow:0 0 8px var(--temax-green);animation:2s infinite temaxPulse}.temax-status-warning{background:var(--temax-amber);box-shadow:0 0 8px var(--temax-amber);animation:2s infinite temaxPulse}.temax-status-offline{background:var(--temax-red);box-shadow:0 0 6px var(--temax-red)}.temax-status-maintenance{background:#747d8c}.temax-status-badge{border-radius:99px;padding:2px 9px;font-size:10px;font-weight:700}.temax-badge-online{background:var(--temax-green-dim);color:var(--temax-green);border:1px solid #00ff8840}.temax-badge-warning{background:var(--temax-amber-dim);color:var(--temax-amber);border:1px solid #f5a62340}.temax-badge-offline{background:var(--temax-red-dim);color:var(--temax-red);border:1px solid #ff475740}.temax-badge-maintenance{color:#747d8c;background:#747d8c1f;border:1px solid #747d8c33}.temax-badge-lg{align-items:center;gap:8px;padding:6px 16px;font-size:12px;display:flex}.temax-panel{background:var(--temax-surface);border:1px solid var(--temax-border);border-radius:20px;padding:24px}.temax-panel-title{color:var(--temax-amber);text-transform:uppercase;letter-spacing:1px;margin-bottom:18px;font-size:12px;font-weight:700}.temax-panel-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:20px;display:flex}.temax-detail-grid{grid-template-columns:210px 1fr 200px;gap:14px;margin-bottom:14px;display:grid}.temax-battery-panel{flex-direction:column;align-items:center;display:flex}.temax-gauge-wrap{width:160px;margin:8px 0 16px}.temax-gauge-svg{width:100%;height:auto}.temax-info-grid{grid-template-columns:1fr 1fr;gap:8px;width:100%;display:grid}.temax-info-chip{border:1px solid var(--temax-border);background:#ffffff0a;border-radius:10px;flex-direction:column;flex:1;gap:2px;padding:8px 10px;display:flex}.temax-chip-label{color:var(--temax-text-muted);font-size:9px}.temax-chip-value{font-family:var(--temax-font-mono);color:var(--temax-text);font-size:14px;font-weight:700}.temax-chip-value small{color:var(--temax-text-muted);margin-right:2px;font-size:9px}.temax-power-display{text-align:center;margin-bottom:16px}.temax-power-label{color:var(--temax-text-muted);margin-bottom:4px;font-size:10px}.temax-power-value{font-family:var(--temax-font-mono);letter-spacing:-2px;font-size:42px;font-weight:900;line-height:1;transition:all .8s}.temax-power-unit{color:var(--temax-text-muted);margin-right:4px;font-size:14px}.temax-info-row-4{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.temax-info-row-4 .temax-info-chip{min-width:80px}.temax-fault-banner{background:var(--temax-red-dim);color:var(--temax-red);border:1px solid #ff47574d;border-radius:10px;margin-top:12px;padding:10px 14px;font-size:12px;font-weight:700}.temax-flow-diagram{justify-content:center;align-items:center;gap:0;padding:16px 0;display:flex}.temax-flow-node{text-align:center}.temax-flow-icon{border:2px solid color-mix(in srgb, var(--node-color) 30%, transparent);background:color-mix(in srgb, var(--node-color) 10%, transparent);border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto;font-size:22px;transition:box-shadow 1s;display:flex}.temax-flow-arrow{align-items:center;width:60px;display:flex;position:relative}.temax-flow-arrow:before,.temax-flow-arrow:after{content:"";background:#ffffff14;flex:1;height:2px;display:block}.temax-flow-arrow.active:before{background:linear-gradient(90deg, var(--temax-amber-dim), #f5a62366)}.temax-flow-arrow.active:after{background:linear-gradient(90deg, #0f86, var(--temax-green-dim))}.temax-flow-dot{background:var(--temax-amber);opacity:0;border-radius:50%;flex-shrink:0;width:7px;height:7px}.temax-flow-arrow.active .temax-flow-dot{box-shadow:0 0 6px var(--temax-amber);animation:1.8s infinite flowDot}.temax-flow-label{color:var(--temax-text-muted);margin-top:6px;font-size:9px}.temax-flow-val{font-size:11px;font-family:var(--temax-font-mono);color:var(--temax-text-2);font-weight:700}.temax-sun-display{text-align:center;margin-bottom:16px}.temax-sun-icon{font-size:44px;transition:opacity 1s;display:block}.temax-irradiance{color:var(--temax-amber);font-size:11px;font-family:var(--temax-font-mono);margin-top:4px}.temax-detail-row{border-bottom:1px solid #ffffff0d;justify-content:space-between;align-items:center;padding:10px 0;font-size:12px;display:flex}.temax-dr-label{color:var(--temax-text-muted)}.temax-dr-value{font-family:var(--temax-font-mono);color:var(--temax-text-2);font-size:11px;font-weight:700}.temax-dr-value small{color:var(--temax-text-muted);margin-right:2px}.temax-history-panel{margin-top:0}.temax-history-controls{flex-direction:column;gap:16px;width:100%;display:flex}.temax-tab-group{flex-wrap:wrap;gap:6px;display:flex}.temax-tab-group button{color:var(--temax-text-muted);font-size:12px;font-family:var(--temax-font);cursor:pointer;background:#ffffff0f;border:none;border-radius:99px;padding:6px 16px;font-weight:700;transition:all .2s}.temax-tab-group button.active,.temax-tab-group button[class*=active]{background:var(--temax-amber);color:#0a0e1a}.temax-chart{width:100%!important;height:200px!important}.temax-filter-row{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.temax-filter-btn{border:1px solid var(--temax-border);background:var(--temax-surface);color:var(--temax-text-muted);font-size:12px;font-weight:700;font-family:var(--temax-font);border-radius:99px;align-items:center;gap:6px;padding:7px 16px;transition:all .2s;display:flex}.temax-filter-btn.active,.temax-filter-btn[class*=active]{background:var(--temax-amber-dim);color:var(--temax-amber);border-color:#f5a62366}.temax-alerts-list{flex-direction:column;gap:10px;display:flex}.temax-alert-item{border:1px solid var(--temax-border);background:var(--temax-surface);border-radius:14px;align-items:flex-start;gap:14px;padding:16px 18px;transition:all .2s;display:flex;position:relative}.temax-alert-item.is-read{opacity:.6}.temax-alert-item.is-read:hover{opacity:1}.temax-sev-bg-critical{background:#ff47570f;border-color:#ff475733!important}.temax-sev-bg-warning{background:#ffa5020f;border-color:#ffa50233!important}.temax-sev-bg-info{background:#70a1ff0f;border-color:#70a1ff33!important}.temax-alert-icon{flex-shrink:0;margin-top:1px;font-size:18px}.temax-sev-color-critical{color:var(--temax-red)}.temax-sev-color-warning{color:var(--temax-amber)}.temax-sev-color-info{color:var(--temax-blue)}.temax-alert-body{flex:1;min-width:0}.temax-alert-meta{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px;display:flex}.temax-alert-serial{font-family:var(--temax-font-mono);color:var(--temax-text-muted);font-size:10px}.temax-alert-type{color:var(--temax-text-muted);background:#ffffff0f;border-radius:99px;padding:1px 8px;font-size:10px}.temax-alert-time{color:var(--temax-text-muted);margin-right:auto;font-size:10px}.temax-alert-message{color:var(--temax-text);font-size:13px;font-weight:600}.temax-alert-site{color:var(--temax-text-muted);margin-top:3px;font-size:11px}.temax-alert-actions{flex-shrink:0;gap:6px;display:flex}.temax-icon-btn{border:1px solid var(--temax-border);width:32px;height:32px;color:var(--temax-text-muted);background:#ffffff0f;border-radius:8px;justify-content:center;align-items:center;font-size:14px;transition:all .2s;display:flex}.temax-icon-btn:hover{color:var(--temax-text);background:#ffffff1a}.temax-unread-dot{background:var(--temax-red);width:7px;height:7px;box-shadow:0 0 6px var(--temax-red);border-radius:50%;position:absolute;top:14px;left:14px}.temax-sev-dot{border-radius:50%;width:7px;height:7px;display:inline-block}.temax-sev-critical{background:var(--temax-red)}.temax-sev-warning{background:var(--temax-amber)}.temax-sev-info{background:var(--temax-blue)}.temax-settings-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;display:grid}.temax-form{flex-direction:column;gap:18px;display:flex}.temax-form-group{flex-direction:column;gap:6px;display:flex}.temax-form-group label{color:var(--temax-text-muted);font-size:11px;font-weight:600}.temax-input{border:1px solid var(--temax-border);border-radius:var(--temax-radius-sm);color:var(--temax-text);background:#ffffff0a;outline:none;width:100%;padding:11px 14px;font-size:13px;transition:border-color .2s}.temax-input:focus{border-color:#f5a62380;box-shadow:0 0 0 3px #f5a6231a}.temax-secret-field{position:relative}.temax-secret-field .temax-input{padding-left:40px}.temax-eye-btn{cursor:pointer;background:0 0;border:none;font-size:14px;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.temax-hint{color:var(--temax-text-muted);font-size:10px}.temax-form-check{color:var(--temax-text-2);align-items:center;gap:8px;font-size:13px;display:flex}.temax-form-check input{width:15px;height:15px;accent-color:var(--temax-amber)}.temax-sys-info{flex-direction:column;gap:0;display:flex}.temax-sys-row{border-bottom:1px solid #ffffff0d;justify-content:space-between;align-items:center;padding:11px 0;font-size:12px;display:flex}.temax-sys-label{color:var(--temax-text-muted)}.temax-sys-value{color:var(--temax-text-2);font-family:var(--temax-font-mono);font-size:11px;font-weight:700}.temax-btn{border-radius:var(--temax-radius-sm);font-size:13px;font-weight:700;font-family:var(--temax-font);cursor:pointer;border:none;padding:10px 20px;transition:all .2s}.temax-btn-primary{background:linear-gradient(135deg, var(--temax-amber), #e8960f);color:#0a0e1a;box-shadow:0 6px 20px #f5a62340}.temax-btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 28px #f5a62366}.temax-btn-ghost{color:var(--temax-text-2);border:1px solid var(--temax-border);background:#ffffff0f}.temax-btn-ghost:hover{background:#ffffff1a}.temax-btn-danger{background:var(--temax-red-dim);color:var(--temax-red);border:1px solid #ff47574d}.temax-btn-full{width:100%}.temax-back-btn{border-radius:var(--temax-radius-sm);border:1px solid var(--temax-border);color:var(--temax-text-2);background:#ffffff0f;align-items:center;padding:8px 16px;font-size:13px;transition:all .2s;display:inline-flex}.temax-back-btn:hover{background:#ffffff1a}.temax-flash{border-radius:var(--temax-radius-sm);margin-bottom:20px;padding:12px 18px;font-size:13px;font-weight:600}.temax-flash.success{background:var(--temax-green-dim);color:var(--temax-green);border:1px solid #00ff8840}.temax-flash.error{background:var(--temax-red-dim);color:var(--temax-red);border:1px solid #ff475740}.temax-empty-state{text-align:center;color:var(--temax-text-muted);padding:60px 20px;font-size:14px}.temax-amber{color:var(--temax-amber)}.temax-green{color:var(--temax-green)}.temax-blue{color:var(--temax-blue)}.temax-red{color:var(--temax-red)}.temax-unit{color:var(--temax-text-muted);margin-right:3px;font-size:13px}.temax-inv-serial-lg{font-family:var(--temax-font-mono);color:var(--temax-text-muted);font-size:11px}.temax-auth-body{background:var(--temax-bg);justify-content:center;align-items:center;min-height:100vh;display:flex;position:relative;overflow:hidden}.temax-auth-bg{pointer-events:none;z-index:0;position:fixed;inset:0}.temax-auth-orb{filter:blur(80px);border-radius:50%;position:absolute}.temax-orb-1{background:radial-gradient(circle,#f5a6231f 0%,#0000 70%);width:600px;height:400px;top:-100px;right:-100px}.temax-orb-2{background:radial-gradient(circle,#70a1ff14 0%,#0000 70%);width:500px;height:500px;bottom:-100px;left:-100px}.temax-auth-grid{background-image:linear-gradient(#ffffff05 1px,#0000 1px),linear-gradient(90deg,#ffffff05 1px,#0000 1px);background-size:40px 40px;position:absolute;inset:0}.temax-auth-card{z-index:1;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border:1px solid var(--temax-border);background:#ffffff08;border-radius:24px;width:400px;padding:48px 40px;position:relative;box-shadow:0 40px 80px #0009}.temax-auth-brand{text-align:center;margin-bottom:36px}.temax-auth-logo{margin-bottom:10px;font-size:44px}.temax-auth-title{font-family:var(--temax-font-mono);color:var(--temax-amber);letter-spacing:3px;font-size:24px;font-weight:900}.temax-auth-subtitle{color:var(--temax-text-muted);margin-top:6px;font-size:12px}.temax-auth-footer{text-align:center;color:var(--temax-text-muted);margin-top:28px;font-size:10px}@keyframes temaxPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.6)}}@keyframes flowDot{0%{opacity:0;transform:translate(-8px)}50%{opacity:1}to{opacity:0;transform:translate(8px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.temax-inverter-card,.temax-panel,.temax-summary-card,.temax-alert-item{animation:.35s forwards fadeIn}@media (width<=1100px){.temax-detail-grid{grid-template-columns:1fr 1fr}.temax-battery-panel{flex-direction:row;grid-column:1/-1;align-items:flex-start;gap:24px}.temax-gauge-wrap{flex-shrink:0}}@media (width<=768px){.temax-sidebar{display:none}.temax-main{padding:16px}.temax-detail-grid,.temax-settings-grid{grid-template-columns:1fr}.temax-power-value{font-size:30px}}
