    /* ─────────────── TOKENS ─────────────── */
    :root {
      --f: "Segoe UI", "Segoe UI Variable", ui-sans-serif, system-ui, sans-serif;

      /* Surface */
      --page:   #f5f6f8;
      --white:  #ffffff;
      --surf-2: #f0f2f5;
      --surf-3: #e8eaed;

      /* Border */
      --b1: #e3e6ea;
      --b2: #d0d4da;

      /* Text */
      --ink:    #111827;
      --ink-2:  #4b5563;
      --ink-3:  #9ca3af;

      /* Amber – solar accent */
      --A:      #d97706;
      --A-lt:   #fef3c7;
      --A-md:   #fde68a;
      --A-txt:  #92400e;

      /* Status */
      --ok:     #16a34a;
      --ok-lt:  #dcfce7;
      --warn:   #ea580c;
      --warn-lt:#ffedd5;
      --off:    #6b7280;
      --off-lt: #f3f4f6;

      /* Sky */
      --sky:    #0369a1;
      --sky-lt: #e0f2fe;

      /* Sizes */
      --sb: 68px;       /* sidebar width */
      --r:  10px;
      --r-lg: 14px;

      /* Shadow */
      --sh: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
      --sh-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
      --sh-lg: 0 8px 24px rgba(0,0,0,.10), 0 3px 6px rgba(0,0,0,.06);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: var(--f);
      background: var(--page);
      color: var(--ink);
      min-height: 100vh;
      /* subtle dot grid */
      background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
      background-size: 28px 28px;
      background-attachment: fixed;
    }

    /* ─────────────── PAGE SHELL ─────────────── */
    .shell {
      display: flex;
      min-height: 100vh;
    }

    /* ─────────────── SIDEBAR ─────────────── */
    .sidebar {
      width: var(--sb);
      background: var(--ink);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
      gap: 6px;
      position: fixed;
      top: 0; left: 0; bottom: 0;
      z-index: 100;
    }

    .sb-logo {
      width: 38px; height: 38px;
      background: var(--A);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1rem;
      margin-bottom: 18px;
      flex-shrink: 0;
    }

    .sb-nav {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      width: 100%;
    }

    .sb-item {
      width: 42px; height: 42px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.40);
      font-size: 1rem;
      cursor: pointer;
      transition: background .15s, color .15s;
      position: relative;
    }

    .sb-item:hover { color: rgba(255,255,255,0.80); background: rgba(255,255,255,0.08); }

    .sb-item.active {
      background: var(--A);
      color: #fff;
    }

    .sb-divider {
      width: 28px;
      height: 1px;
      background: rgba(255,255,255,0.10);
      margin: 8px 0;
    }

    .sb-bottom {
      margin-top: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    /* ─────────────── MAIN CONTENT ─────────────── */
    .main {
      margin-left: var(--sb);
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ─────────────── TOPBAR ─────────────── */
    .topbar {
      background: var(--white);
      border-bottom: 1px solid var(--b1);
      padding: 0 28px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .breadcrumb-dash {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.85rem;
      color: var(--ink-3);
    }

    .breadcrumb-dash strong {
      color: var(--ink);
      font-weight: 600;
    }

    .breadcrumb-sep { color: var(--b2); }

    .topbar-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--ink);
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .live-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--ok-lt);
      color: var(--ok);
      border: 1px solid rgba(22,163,74,.20);
      border-radius: 999px;
      padding: 4px 12px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .live-dot {
      width: 7px; height: 7px;
      background: var(--ok);
      border-radius: 50%;
      animation: blink 1.8s ease infinite;
    }

    @keyframes blink {
      0%,100% { opacity: 1; }
      50%      { opacity: 0.35; }
    }

    .tb-btn {
      width: 36px; height: 36px;
      border-radius: var(--r);
      background: transparent;
      border: 1px solid var(--b1);
      color: var(--ink-2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      cursor: pointer;
      transition: background .15s, border-color .15s;
    }
    .tb-btn:hover { background: var(--surf-2); border-color: var(--b2); }

    /* ─────────────── CONTENT AREA ─────────────── */
    .content {
      padding: 26px 28px 40px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    /* ─────────────── PAGE HEADER ─────────────── */
    .page-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .page-eyebrow {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--A);
      letter-spacing: .10em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .page-title {
      font-size: 1.7rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.1;
    }

    .page-sub {
      font-size: 0.875rem;
      color: var(--ink-2);
      margin-top: 4px;
    }

    .page-actions {
      display: flex;
      gap: 8px;
    }

    .btn-outline-dash {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 16px;
      border-radius: var(--r);
      border: 1px solid var(--b1);
      background: var(--white);
      color: var(--ink-2);
      font-family: var(--f);
      font-size: 0.84rem;
      font-weight: 500;
      cursor: pointer;
      transition: background .15s, border-color .15s;
      text-decoration: none;
      white-space: nowrap;
    }
    .btn-outline-dash:hover { background: var(--surf-2); border-color: var(--b2); }

    .btn-amber {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 16px;
      border-radius: var(--r);
      border: 1px solid transparent;
      background: var(--A);
      color: #fff;
      font-family: var(--f);
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      transition: filter .15s;
    }
    .btn-amber:hover { filter: brightness(1.08); }

    /* ─────────────── METRIC STRIP ─────────────── */
    .metric-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .metric-tile {
      background: var(--white);
      border: 1px solid var(--b1);
      border-radius: var(--r-lg);
      padding: 20px 22px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: var(--sh);
      transition: box-shadow .2s, transform .2s;
      position: relative;
      overflow: hidden;
    }

    .metric-tile:hover {
      box-shadow: var(--sh-md);
      transform: translateY(-2px);
    }

    /* Bottom stripe by type */
    .metric-tile::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 3px;
    }
    .mt-amber::after  { background: var(--A); }
    .mt-red::after    { background: #ef4444; }
    .mt-sky::after    { background: #0ea5e9; }
    .mt-green::after  { background: var(--ok); }

    .mt-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .mt-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--ink-3);
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .mt-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
    }

    .mti-amber { background: var(--A-lt);  color: var(--A); }
    .mti-red   { background: #fee2e2;      color: #dc2626; }
    .mti-sky   { background: var(--sky-lt);color: var(--sky); }
    .mti-green { background: var(--ok-lt); color: var(--ok); }

    .mt-value {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }

    .mt-foot {
      font-size: 0.75rem;
      color: var(--ink-3);
    }

    /* ─────────────── SECTION LABEL ─────────────── */
    .sec-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .sec-label-text {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--ink-3);
      letter-spacing: .10em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .sec-label-text::before {
      content: '';
      display: block;
      width: 14px; height: 2px;
      background: var(--A);
      border-radius: 1px;
    }

    .sec-label-sub {
      font-size: 0.8rem;
      color: var(--ink-3);
    }

    /* ─────────────── GAUGE STRIP ─────────────── */
    .gauge-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .gauge-tile {
      background: var(--white);
      border: 1px solid var(--b1);
      border-radius: var(--r-lg);
      padding: 22px;
      box-shadow: var(--sh);
      display: flex;
      align-items: center;
      gap: 20px;
      transition: box-shadow .2s, transform .2s;
    }

    .gauge-tile:hover {
      box-shadow: var(--sh-md);
      transform: translateY(-2px);
    }

    .donut-wrap {
      flex-shrink: 0;
      position: relative;
      width: 88px; height: 88px;
    }

    .donut-wrap svg {
      width: 100%; height: 100%;
      transform: rotate(-90deg);
    }

    .donut-track {
      fill: none;
      stroke: var(--surf-3);
      stroke-width: 10;
    }

    .donut-fill {
      fill: none;
      stroke-width: 10;
      stroke-linecap: round;
      transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1), stroke .4s ease;
    }

    .donut-center {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 0;
    }

    .donut-val {
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }

    .donut-unit {
      font-size: 0.65rem;
      color: var(--ink-3);
      font-weight: 500;
    }

    .gauge-info { flex: 1; }

    .gauge-info-title {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 3px;
    }

    .gauge-info-sub {
      font-size: 0.78rem;
      color: var(--ink-2);
      line-height: 1.4;
      margin-bottom: 10px;
    }

    .gauge-bar-wrap {
      height: 5px;
      background: var(--surf-3);
      border-radius: 999px;
      overflow: hidden;
    }

    .gauge-bar-fill {
      height: 100%;
      border-radius: 999px;
      transition: width .9s cubic-bezier(.4,0,.2,1);
    }

    /* ─────────────── FILTER ROW ─────────────── */
    .filter-row {
      background: var(--white);
      border: 1px solid var(--b1);
      border-radius: var(--r-lg);
      padding: 16px 20px;
      display: flex;
      align-items: flex-end;
      gap: 14px;
      box-shadow: var(--sh);
      flex-wrap: wrap;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
      flex: 1;
      min-width: 160px;
    }

    .filter-group label {
      font-size: 0.70rem;
      font-weight: 600;
      color: var(--ink-3);
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .form-control,
    .form-select {
      background: var(--surf-2) !important;
      border: 1px solid var(--b1) !important;
      color: var(--ink) !important;
      border-radius: var(--r) !important;
      height: 40px;
      font-size: 0.875rem;
      font-family: var(--f);
      box-shadow: none !important;
      transition: border-color .15s, background .15s;
    }

    .form-control:focus,
    .form-select:focus {
      background: var(--white) !important;
      border-color: var(--A) !important;
      box-shadow: 0 0 0 3px rgba(217,119,6,.12) !important;
      outline: none;
    }

    .form-control::placeholder { color: var(--ink-3) !important; }

    /* ─────────────── CHART PANEL ─────────────── */
    .chart-panel {
      background: var(--white);
      border: 1px solid var(--b1);
      border-radius: var(--r-lg);
      padding: 22px 24px;
      box-shadow: var(--sh);
    }

    .chart-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .chart-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--ink);
    }

    .chart-sub {
      font-size: 0.78rem;
      color: var(--ink-2);
      margin-top: 2px;
    }

    .chart-legend {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      color: var(--ink-2);
      font-weight: 500;
    }

    .legend-dot {
      width: 8px; height: 8px;
      border-radius: 2px;
    }

    .chart-box { height: 320px; position: relative; }

    /* ─────────────── INVERTER CARDS ─────────────── */
    .inv-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .inv-card {
      background: var(--white);
      border: 1px solid var(--b1);
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: var(--sh);
      transition: box-shadow .2s, transform .2s;
    }

    .inv-card:hover {
      box-shadow: var(--sh-md);
      transform: translateY(-2px);
    }

    /* Color-coded top stripe by status */
    .inv-card.is-active  { border-top: 3px solid var(--ok); }
    .inv-card.is-warning { border-top: 3px solid var(--warn); }
    .inv-card.is-offline { border-top: 3px solid var(--off); }

    .inv-head {
      padding: 14px 16px 12px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px solid var(--b1);
    }

    .inv-name {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 2px;
    }

    .inv-ip {
      font-size: 0.72rem;
      color: var(--ink-3);
      font-variant-numeric: tabular-nums;
    }

    .inv-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: .03em;
      flex-shrink: 0;
    }

    .inv-badge::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .badge-active  { background: var(--ok-lt);  color: var(--ok);  }
    .badge-active::before  { background: var(--ok); }
    .badge-warning { background: var(--warn-lt); color: var(--warn); }
    .badge-warning::before { background: var(--warn); }
    .badge-offline { background: var(--off-lt); color: var(--off); }
    .badge-offline::before { background: var(--off); }

    /* Ring in head */
    .inv-ring {
      width: 52px; height: 52px;
      position: relative;
      flex-shrink: 0;
    }

    .inv-ring svg {
      width: 100%; height: 100%;
      transform: rotate(-90deg);
    }

    .ring-tr { fill: none; stroke: var(--surf-3); stroke-width: 6; }
    .ring-fi { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }

    .inv-ring .rc {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--ink);
      font-variant-numeric: tabular-nums;
    }

    /* KPI row */
    .inv-kpis {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-bottom: 1px solid var(--b1);
    }

    .inv-kpi {
      padding: 10px 14px;
      border-right: 1px solid var(--b1);
    }

    .inv-kpi:nth-child(even) { border-right: none; }

    .inv-kpi-l {
      font-size: 0.68rem;
      color: var(--ink-3);
      font-weight: 500;
      margin-bottom: 2px;
    }

    .inv-kpi-v {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--ink);
      font-variant-numeric: tabular-nums;
    }

    /* Energy list */
    .inv-rows {
      padding: 4px 0;
    }

    .inv-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 14px;
      font-size: 0.76rem;
      border-bottom: 1px solid var(--surf-2);
    }

    .inv-row:last-child { border-bottom: none; }

    .inv-row-l { color: var(--ink-2); }

    .inv-row-v {
      font-weight: 600;
      color: var(--ink);
      font-variant-numeric: tabular-nums;
    }

    .inv-ts {
      padding: 6px 14px;
      font-size: 0.68rem;
      color: var(--ink-3);
      display: flex;
      align-items: center;
      gap: 5px;
      border-top: 1px solid var(--b1);
      background: var(--surf-2);
    }

    /* ─────────────── EMPTY STATE ─────────────── */
    .empty-state {
      text-align: center;
      padding: 56px 20px;
      background: var(--white);
      border: 1px dashed var(--b2);
      border-radius: var(--r-lg);
      color: var(--ink-3);
    }

    /* ─────────────── ANIMATIONS ─────────────── */
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .a1 { animation: fadeSlideUp .4s ease both; }
    .a2 { animation: fadeSlideUp .4s .07s ease both; }
    .a3 { animation: fadeSlideUp .4s .14s ease both; }
    .a4 { animation: fadeSlideUp .4s .21s ease both; }
    .a5 { animation: fadeSlideUp .4s .28s ease both; }

    /* ─────────────── RESPONSIVE ─────────────── */
    @media (max-width: 1400px) {
      .inv-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    }

    @media (max-width: 1100px) {
      .metric-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .gauge-strip  { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .inv-grid     { grid-template-columns: repeat(2, minmax(0,1fr)); }
    }

    @media (max-width: 768px) {
      :root { --sb: 0px; }
      .sidebar { display: none; }
      .gauge-strip { grid-template-columns: 1fr; }
      .metric-strip { grid-template-columns: 1fr 1fr; }
      .inv-grid { grid-template-columns: 1fr; }
      .content { padding: 18px 16px 32px; }
      .topbar { padding: 0 16px; }
    }
/* ========================================= */
/* EXTRACTED STYLES FROM HTML FILES */
/* ========================================= */

/* Extracted from login.html */
body.auth-page {
      background: #f4f7fa;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .login-container {
      width: 100%;
      max-width: 420px;
      padding: 20px;
    }
    .login-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 25px rgba(0,0,0,.04);
      border: 1px solid rgba(227,230,234,.6);
      text-align: center;
    }
    .login-logo {
      font-size: 2.5rem;
      color: var(--A);
      margin-bottom: 20px;
    }
    .login-title {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111827;
      margin-bottom: 8px;
    }
    .login-sub {
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 32px;
    }
    .form-label {
      text-align: left;
      display: block;
      font-weight: 600;
      font-size: 0.85rem;
      color: #374151;
      margin-bottom: 6px;
    }
    .form-control {
      border-radius: 10px;
      padding: 12px 16px;
      border: 1px solid #e3e6ea;
      font-size: 0.95rem;
      transition: all .2s ease;
    }
    .form-control:focus {
      border-color: var(--A);
      box-shadow: 0 0 0 4px rgba(249,115,22,.1);
    }
    .btn-login {
      background: var(--A);
      border: none;
      border-radius: 10px;
      padding: 12px;
      width: 100%;
      color: #fff;
      font-weight: 600;
      margin-top: 16px; /* Ajustat de la 24px pentru a lăsa loc link-ului */
      transition: all .2s ease;
    }
    .btn-login:hover {
      background: #ea580c;
      transform: translateY(-1px);
    }
    .login-footer {
      margin-top: 24px;
      font-size: 0.85rem;
      color: #6b7280;
    }
    .login-footer a, .forgot-link a {
      color: var(--A);
      text-decoration: none;
      font-weight: 600;
    }
    /* NOU: Stil adăugat pentru link-ul de recuperare */
    .forgot-link {
      text-align: right;
      font-size: 0.85rem;
      margin-top: 8px;
    }
.gen-style-1-224b51 { display: none; }
.gen-style-2-b55462 { font-size:.88rem; color:#6b7280; font-weight:600; }
.gen-style-3-93b8ea { display:none; }
.gen-style-4-e7ec96 { font-size: 1.1rem; }
.gen-style-5-0ffb1d { position: relative; height: 320px; width: 100%; }
.gen-style-6-204d70 { display:none; border-color:#fcd34d; }

/* Extracted from user_panel.html */
.settings-card {
      background: #fff;
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 24px;
      border: 1px solid rgba(227,230,234,.6);
      box-shadow: 0 4px 12px rgba(0,0,0,.02);
    }
    .settings-title {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 20px;
      color: #111827;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .settings-title i { color: var(--A); }
    .api-key-box {
      background: #f9fafb;
      padding: 14px;
      border-radius: 10px;
      border: 1px dashed #d1d5db;
      font-family: monospace;
      font-size: .95rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      word-break: break-all;
    }
    .btn-action {
      background: var(--A);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
      font-weight: 600;
      transition: all .2s;
      cursor: pointer;
    }
    .btn-action:hover { background: #ea580c; transform: translateY(-1px); }

    /* System cards in user panel */
    .system-card {
      background: #fff;
      border-radius: 14px;
      padding: 20px;
      border: 1px solid rgba(227,230,234,.6);
      box-shadow: 0 4px 12px rgba(0,0,0,.02);
      margin-bottom: 20px;
    }
    .system-card-title {
      font-weight: 700;
      font-size: 1rem;
      color: #111827;
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .system-card-sub {
      font-size: .82rem;
      color: #6b7280;
      margin-bottom: 16px;
    }
    .chart-wrap {
      height: 220px;
      position: relative;
    }
    .canvasjs-chart-canvas { border-radius: 8px; }
    .no-systems {
      text-align: center;
      padding: 40px;
      color: #9ca3af;
    }
    .system-link {
      font-size: .82rem;
      color: var(--A);
      text-decoration: none;
      font-weight: 600;
    }
    .system-link:hover { text-decoration: underline; }
.gen-style-7-d3754b { flex-direction:column; align-items:flex-start; gap:15px; }
.gen-style-8-3d1112 { word-break: break-all; width:100%; }

/* Extracted from verify.html */
body.auth-page { background: #f4f7fa; min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; }
    .card-box { background: #fff; border-radius: 20px; padding: 40px; max-width: 420px; width: 100%; box-shadow: 0 10px 25px rgba(0,0,0,.04); border: 1px solid rgba(227,230,234,.6); }
    .btn-ok { background: var(--ok, #16a34a); border: none; color: #fff; font-weight: 600; border-radius: 10px; padding: 12px; width: 100%; }
    .btn-link { background: none; border: none; color: #ea580c; font-weight: 600; }
.gen-style-9-388017 { font-size:1.65rem }
.gen-style-10-16e352 { width:0%;background:var(--ok) }
.gen-style-11-865b39 { width:0%;background:var(--A) }
.gen-style-12-be0d67 { width:0%;background:var(--sky) }
.gen-style-13-284b84 { max-width:340px }
.gen-style-14-3831ac { max-width:200px }
.gen-style-15-ac5a41 { max-width:220px }
.gen-style-16-d1540f { background:#0ea5e9 }
.gen-style-17-205bce { background:var(--A) }
.gen-style-18-b6c524 { background:var(--ok) }
.gen-style-19-960d3b { display:block;margin-bottom:10px }
.gen-style-20-5e6242 { font-weight:600;margin-bottom:4px }
.gen-style-21-a7560b { font-size:.84rem }
.gen-style-22-8aec80 { width:auto; text-decoration:none; }
.gen-style-23-a0b6bf { font-size:0.85rem; font-weight:600; }

/* Extracted from loginold.html */
body.auth-page {
      background: #f4f7fa;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .login-container {
      width: 100%;
      max-width: 420px;
      padding: 20px;
    }
    .login-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 25px rgba(0,0,0,.04);
      border: 1px solid rgba(227,230,234,.6);
      text-align: center;
    }
    .login-logo {
      font-size: 2.5rem;
      color: var(--A);
      margin-bottom: 20px;
    }
    .login-title {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111827;
      margin-bottom: 8px;
    }
    .login-sub {
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 32px;
    }
    .form-label {
      text-align: left;
      display: block;
      font-weight: 600;
      font-size: 0.85rem;
      color: #374151;
      margin-bottom: 6px;
    }
    .form-control {
      border-radius: 10px;
      padding: 12px 16px;
      border: 1px solid #e3e6ea;
      font-size: 0.95rem;
      transition: all .2s ease;
    }
    .form-control:focus {
      border-color: var(--A);
      box-shadow: 0 0 0 4px rgba(249,115,22,.1);
    }
    .btn-login {
      background: var(--A);
      border: none;
      border-radius: 10px;
      padding: 12px;
      width: 100%;
      color: #fff;
      font-weight: 600;
      margin-top: 24px;
      transition: all .2s ease;
    }
    .btn-login:hover {
      background: #ea580c;
      transform: translateY(-1px);
    }
    .login-footer {
      margin-top: 24px;
      font-size: 0.85rem;
      color: #6b7280;
    }
    .login-footer a {
      color: var(--A);
      text-decoration: none;
      font-weight: 600;
    }

/* Extracted from verify_code.html */
body.auth-page {
      background: #f4f7fa;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .login-container {
      width: 100%;
      max-width: 420px;
      padding: 20px;
    }
    .login-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 25px rgba(0,0,0,.04);
      border: 1px solid rgba(227,230,234,.6);
      text-align: center;
    }
    .login-logo {
      font-size: 2.5rem;
      color: var(--A);
      margin-bottom: 20px;
    }
    .login-title {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111827;
      margin-bottom: 8px;
    }
    .login-sub {
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 32px;
    }
    .form-label {
      text-align: left;
      display: block;
      font-weight: 600;
      font-size: 0.85rem;
      color: #374151;
      margin-bottom: 6px;
    }
    .form-control {
      border-radius: 10px;
      padding: 12px 16px;
      border: 1px solid #e3e6ea;
      font-size: 0.95rem;
      transition: all .2s ease;
    }
    .form-control:focus {
      border-color: var(--A);
      box-shadow: 0 0 0 4px rgba(249,115,22,.1);
    }
    .code-input {
      letter-spacing: 8px;
      font-weight: 700;
      font-size: 1.3rem;
      text-align: center;
    }
    .btn-login {
      background: var(--A);
      border: none;
      border-radius: 10px;
      padding: 12px;
      width: 100%;
      color: #fff;
      font-weight: 600;
      margin-top: 24px;
      transition: all .2s ease;
    }
    .btn-login:hover {
      background: #ea580c;
      transform: translateY(-1px);
    }
    .login-footer {
      margin-top: 24px;
      font-size: 0.85rem;
      color: #6b7280;
    }
    .login-footer a {
      color: var(--A);
      text-decoration: none;
      font-weight: 600;
    }
.gen-style-24-760a97 { font-size: 0.85rem; border-radius: 10px; }

/* Extracted from register.html */
body.auth-page {
      background: #f4f7fa;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .login-container {
      width: 100%;
      max-width: 420px;
      padding: 20px;
    }
    .login-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 25px rgba(0,0,0,.04);
      border: 1px solid rgba(227,230,234,.6);
      text-align: center;
    }
    .login-logo {
      font-size: 2.5rem;
      color: var(--ok);
      margin-bottom: 20px;
    }
    .login-title {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111827;
      margin-bottom: 8px;
    }
    .login-sub {
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 32px;
    }
    .form-label {
      text-align: left;
      display: block;
      font-weight: 600;
      font-size: 0.85rem;
      color: #374151;
      margin-bottom: 6px;
    }
    .form-control {
      border-radius: 10px;
      padding: 12px 16px;
      border: 1px solid #e3e6ea;
      font-size: 0.95rem;
      transition: all .2s ease;
    }
    .form-control:focus {
      border-color: var(--ok);
      box-shadow: 0 0 0 4px rgba(22,163,74,.1);
    }
    .btn-login {
      background: var(--ok);
      border: none;
      border-radius: 10px;
      padding: 12px;
      width: 100%;
      color: #fff;
      font-weight: 600;
      margin-top: 24px;
      transition: all .2s ease;
    }
    .btn-login:hover {
      background: #15803d;
      transform: translateY(-1px);
    }
    .login-footer {
      margin-top: 24px;
      font-size: 0.85rem;
      color: #6b7280;
    }
    .login-footer a {
      color: var(--ok);
      text-decoration: none;
      font-weight: 600;
    }

/* Extracted from forgot_password.html */
body.auth-page {
      background: #f4f7fa;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .login-container {
      width: 100%;
      max-width: 420px;
      padding: 20px;
    }
    .login-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 25px rgba(0,0,0,.04);
      border: 1px solid rgba(227,230,234,.6);
      text-align: center;
    }
    .login-logo {
      font-size: 2.5rem;
      color: var(--A);
      margin-bottom: 20px;
    }
    .login-title {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111827;
      margin-bottom: 8px;
    }
    .login-sub {
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 32px;
    }
    .form-label {
      text-align: left;
      display: block;
      font-weight: 600;
      font-size: 0.85rem;
      color: #374151;
      margin-bottom: 6px;
    }
    .form-control {
      border-radius: 10px;
      padding: 12px 16px;
      border: 1px solid #e3e6ea;
      font-size: 0.95rem;
      transition: all .2s ease;
    }
    .form-control:focus {
      border-color: var(--A);
      box-shadow: 0 0 0 4px rgba(249,115,22,.1);
    }
    .btn-login {
      background: var(--A);
      border: none;
      border-radius: 10px;
      padding: 12px;
      width: 100%;
      color: #fff;
      font-weight: 600;
      margin-top: 24px;
      transition: all .2s ease;
    }
    .btn-login:hover {
      background: #ea580c;
      transform: translateY(-1px);
    }
    .login-footer {
      margin-top: 24px;
      font-size: 0.85rem;
      color: #6b7280;
    }
    .login-footer a {
      color: var(--A);
      text-decoration: none;
      font-weight: 600;
    }

/* Extracted from panou_control.html */
.settings-card {
      background: #fff;
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 24px;
      border: 1px solid rgba(227,230,234,.6);
      box-shadow: 0 4px 12px rgba(0,0,0,.02);
    }
    .settings-title {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 20px;
      color: #111827;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn-action {
      background: var(--A);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
      font-weight: 600;
      transition: all .2s;
      cursor: pointer;
    }
    .btn-action:hover { background: #ea580c; transform: translateY(-1px); }
    .btn-success-cmd { background: #10b981; color: #fff; border:none; border-radius:8px; padding:8px 16px; font-weight:600; }
    .btn-success-cmd:hover { background: #059669; }
    .btn-danger-cmd { background: #ef4444; color: #fff; border:none; border-radius:8px; padding:8px 16px; font-weight:600; }
    .btn-danger-cmd:hover { background: #dc2626; }
    .btn-primary-cmd { background: #3b82f6; color: #fff; border:none; border-radius:8px; padding:8px 16px; font-weight:600; }
    .btn-primary-cmd:hover { background: #2563eb; }
    .btn-dark-cmd { background: #334155; color: #fff; border:none; border-radius:8px; padding:8px 16px; font-weight:600; }
    .btn-dark-cmd:hover { background: #1e293b; }
.gen-style-25-37bb8b { display:none; opacity: 0; transition: opacity 0.5s; }


/* ==========================================================================
   1. CLASELE ORIGINALE PENTRU MONITOR.HTML
   ========================================================================== */
.monitor-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-size: 0.875rem;
  color: var(--ink-subtle);
}

.data-value {
  font-weight: 600;
}


/* ==========================================================================
   STILURI ORIGINALE INTEGRATE PENTRU MONITOR.HTML ȘI BMS_CELULE.HTML
   ========================================================================== */

/* --- 1. Stilul original din monitor.html --- */
.metric-card {
  background: var(--white);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.metric-icon {
  font-size: 2.5rem;
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  opacity: 0.08;
  color: var(--primary);
}
.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #344767;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7b809a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-subtext {
  font-size: 0.8rem;
  color: #8392ab;
}
.chart-container {
  background: var(--white);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh);
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #2dce89;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(45, 206, 137, 0.7);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0 {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(45, 206, 137, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(45, 206, 137, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(45, 206, 137, 0);
  }
}
.status-badge {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
}
.status-online {
  background: #e2f9ec;
  color: #2dce89;
}
.status-offline {
  background: #fee6e6;
  color: #f5365c;
}
.status-unknown {
  background: #e9ecef;
  color: #8898aa;
}

/* --- 2. Stilul original exact din bms_celule.html --- */
.bms-card { 
  background: #ffffff; 
  border: 1px solid var(--border, #e2e8f0); 
  border-radius: 12px; 
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.metric-box {
  background: var(--card, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}
.text-muted {
  color: #64748b !important;
}
.text-white {
  color: #1e293b !important;
}
