/* =============================================================
   HOME ASSISTANT BOOT SIMULATOR — CSS COMPLET v2
   TechEnClair © 2026 — ha-boot-simulator.css
   ============================================================= */

/* ── WRAPPER ────────────────────────────────────────────────── */
.haboot-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  background: #000;
  font-family: 'Courier New', monospace;
  user-select: none;
}

/* ── PHASE DOTS ─────────────────────────────────────────────── */
.haboot-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #050505;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  visibility: hidden;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.haboot-phase-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.haboot-dot-inner {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: all 0.4s;
}
.haboot-phase-dot.active .haboot-dot-inner {
  background: var(--phase-color);
  border-color: var(--phase-color);
  box-shadow: 0 0 8px var(--phase-color);
  transform: scale(1.4);
}
.haboot-phase-dot.done .haboot-dot-inner {
  background: rgba(74,222,128,0.4);
  border-color: #4ade80;
}
.haboot-dot-label {
  font-size: 8px;
  color: #444;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
}
.haboot-phase-dot.active .haboot-dot-label { color: #ddd; }
.haboot-phase-dot.done   .haboot-dot-label { color: #4ade80; }
.haboot-phase-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
  min-width: 12px;
  max-width: 60px;
  margin-bottom: 16px;
}

/* ── SCREEN ─────────────────────────────────────────────────── */
.haboot-screen {
  position: relative;
  min-height: 380px;
  background: #000;
}

/* ── IDLE ───────────────────────────────────────────────────── */
.haboot-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 40px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.06) 0%, transparent 60%);
}
.haboot-idle-icon { font-size: 48px; margin-bottom: 16px; }
.haboot-idle-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #eee;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 12px;
}
.haboot-idle-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.haboot-start-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}
.haboot-start-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(34,197,94,0.4);
}

/* ── PHASE SCREENS ──────────────────────────────────────────── */
.haboot-phase-screen {
  display: none;
  flex-direction: column;
  min-height: 380px;
  animation: habootFadeIn 0.3s ease;
}
@keyframes habootFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── BIOS ───────────────────────────────────────────────────── */
.haboot-bios-header {
  background: #0a0a0a;
  padding: 8px 16px;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.haboot-bios-logo { font-size: 13px; color: #94a3b8; font-weight: 700; letter-spacing: 0.2em; }
.haboot-bios-brand { font-size: 11px; color: #334155; }
.haboot-bios-footer {
  margin-top: auto;
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
  padding: 6px 16px;
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #334155;
}
.haboot-grub-header {
  padding: 10px 16px;
  background: #0c0800;
  border-bottom: 1px solid #2a1800;
  font-size: 12px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: 0.15em;
}
.haboot-haos-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #020d06;
  border-bottom: 1px solid #0a2d12;
  font-size: 11px;
  color: #4ade80;
  font-weight: 700;
}
.haboot-haos-logo { font-size: 18px; }

/* ── TERMINAL ───────────────────────────────────────────────── */
.haboot-terminal {
  flex: 1;
  background: #030303;
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.7;
  overflow-y: auto;
  max-height: 320px;
  min-height: 240px;
}
.haboot-grub-terminal    { background: #080500; }
.haboot-kernel-terminal  { background: #010408; }
.haboot-haos-terminal    { background: #01080a; }
.haboot-services-terminal{ background: #020208; }
.haboot-line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  animation: habootLineIn 0.1s ease;
}
@keyframes habootLineIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── WELCOME / HA APP ───────────────────────────────────────── */
.haboot-welcome {
  flex-direction: column !important;
  background: #111827;
}
.haboot-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f2937;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 6px 12px;
  height: 36px;
  flex-shrink: 0;
}
.haboot-browser-dots { display: flex; gap: 6px; }
.haboot-bdot { width: 10px; height: 10px; border-radius: 50%; }
.haboot-bdot.red    { background: #ef4444; }
.haboot-bdot.yellow { background: #f59e0b; }
.haboot-bdot.green  { background: #22c55e; }
.haboot-browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #374151;
  border-radius: 20px;
  padding: 3px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
}

/* ── ONBOARDING ─────────────────────────────────────────────── */
.haboot-ha-app {
  flex: 1;
  background: linear-gradient(160deg, #111827 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.haboot-ha-onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 340px;
  animation: habootFadeIn 0.35s ease;
}
.haboot-onboarding-appear { animation: habootSlideUp 0.35s ease; }
@keyframes habootSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.haboot-ha-logo { font-size: 48px; margin-bottom: 4px; }
.haboot-success-logo { animation: habootBounce 0.6s ease; }
@keyframes habootBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.haboot-ha-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.3;
}
.haboot-ha-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.haboot-ha-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.haboot-ha-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
}
.haboot-ha-btn {
  background: linear-gradient(135deg, #22c55e, #059669);
  border: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(34,197,94,0.25);
}
.haboot-ha-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.35); }
.haboot-btn-dashboard {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.haboot-btn-dashboard:hover { box-shadow: 0 8px 24px rgba(59,130,246,0.45); }
.haboot-discovered-devices { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.haboot-device-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}
.haboot-device-icon { font-size: 20px; flex-shrink: 0; }
.haboot-device-name { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: #ddd; }
.haboot-device-ip   { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; }
.haboot-device-badge {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 2px 6px;
  border-radius: 10px;
}
.haboot-success-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.haboot-success-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #6b7280;
}
.haboot-success-row strong { color: #22c55e; }

/* ── DASHBOARD FULL ─────────────────────────────────────────── */
.haboot-ha-dashboard {
  width: 100%;
  height: 100%;
  display: flex;
  animation: habootFadeIn 0.4s ease;
  min-height: 460px;
}

/* sidebar */
.haboot-dash-sidebar {
  width: 180px;
  background: #111827;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.haboot-dash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.haboot-dash-logo-icon { font-size: 20px; }
.haboot-dash-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #22c55e;
}
.haboot-dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  gap: 1px;
  overflow-y: auto;
}
.haboot-dash-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.haboot-dash-nav-item:hover { background: rgba(255,255,255,0.05); color: #ccc; }
.haboot-dash-nav-item.active {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  font-weight: 800;
}
.haboot-nav-icon { font-size: 14px; flex-shrink: 0; }
.haboot-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.haboot-dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.haboot-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.haboot-user-info  { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: #ddd; }
.haboot-user-role  { font-family: 'Inter', sans-serif; font-size: 9px; color: #6b7280; }

.haboot-dash-restart-sidebar {
  margin: 10px 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #6b7280;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.haboot-dash-restart-sidebar:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* content area */
.haboot-dash-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  overflow: hidden;
}
.haboot-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: #111827;
  flex-shrink: 0;
}
.haboot-dash-page-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #f1f5f9;
}
.haboot-dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.haboot-notify-bell {
  font-size: 14px;
  position: relative;
  cursor: pointer;
}
.haboot-notify-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
}
.haboot-dash-search {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #4b5563;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.haboot-dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.haboot-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.haboot-section-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.haboot-section-badge.green   { background: rgba(34,197,94,0.1);  color: #22c55e;  border: 1px solid rgba(34,197,94,0.3); }
.haboot-section-badge.yellow  { background: rgba(234,179,8,0.1);  color: #eab308;  border: 1px solid rgba(234,179,8,0.3); }
.haboot-section-badge.blue    { background: rgba(59,130,246,0.1); color: #3b82f6;  border: 1px solid rgba(59,130,246,0.3); }
.haboot-section-badge.purple  { background: rgba(139,92,246,0.1); color: #8b5cf6;  border: 1px solid rgba(139,92,246,0.3); }
.haboot-section-badge.pink    { background: rgba(236,72,153,0.1); color: #ec4899;  border: 1px solid rgba(236,72,153,0.3); }
.haboot-section-badge.indigo  { background: rgba(99,102,241,0.1); color: #6366f1;  border: 1px solid rgba(99,102,241,0.3); }
.haboot-section-badge.cyan    { background: rgba(34,211,238,0.1); color: #22d3ee;  border: 1px solid rgba(34,211,238,0.3); }
.haboot-section-badge.amber   { background: rgba(245,158,11,0.1); color: #f59e0b;  border: 1px solid rgba(245,158,11,0.3); }
.haboot-section-badge.red     { background: rgba(239,68,68,0.1);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.3); }
.haboot-section-badge.gray    { background: rgba(107,114,128,0.1);color: #9ca3af;  border: 1px solid rgba(107,114,128,0.3); }
.haboot-section-date { font-family: 'Inter', sans-serif; font-size: 10px; color: #4b5563; }
.haboot-small-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.haboot-small-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── APERCU GRID ─────────────────────────────────────────────── */
.haboot-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.haboot-dash-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.haboot-dash-card:hover { background: rgba(255,255,255,0.07); }
.haboot-dash-card.on {
  background: rgba(34,197,94,0.07);
  border-color: rgba(34,197,94,0.25);
}
.haboot-dash-card.sensor { cursor: default; }
.haboot-dash-card-icon { font-size: 18px; }
.haboot-dash-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #6b7280;
}
.haboot-dash-card-state {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.haboot-dash-card.on .haboot-dash-card-state { color: #4ade80; }
.haboot-big-value { font-size: 14px; font-weight: 900; color: #e2e8f0 !important; }
.haboot-dash-toggle {
  width: 26px; height: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  margin-top: 3px;
  position: relative;
  transition: background 0.2s;
}
.haboot-dash-card.on .haboot-dash-toggle { background: #22c55e; }
.haboot-dash-toggle::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: left 0.2s;
}
.haboot-dash-card.on .haboot-dash-toggle::after { left: 14px; }
.haboot-rooms-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.haboot-room-chip {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.haboot-room-chip:hover, .haboot-room-chip.active {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}

/* ── ÉNERGIE ─────────────────────────────────────────────────── */
.haboot-energy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.haboot-energy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.haboot-energy-icon { font-size: 18px; }
.haboot-energy-label { font-family: 'Inter', sans-serif; font-size: 9px; color: #6b7280; text-transform: uppercase; font-weight: 700; }
.haboot-energy-value { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 900; }
.haboot-energy-value.green  { color: #22c55e; }
.haboot-energy-value.yellow { color: #eab308; }
.haboot-energy-value.blue   { color: #3b82f6; }
.haboot-energy-value.red    { color: #ef4444; }
.haboot-energy-sub { font-family: 'Inter', sans-serif; font-size: 9px; color: #4b5563; }
.haboot-chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
}
.haboot-chart-title { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.haboot-fake-chart {
  display: flex;
  align-items: flex-end;
  height: 60px;
  gap: 2px;
}
.haboot-chart-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: opacity 0.2s;
  cursor: pointer;
}
.haboot-chart-bar:hover { opacity: 0.7; }
.haboot-chart-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #4b5563;
  margin-top: 4px;
}

/* ── CARTE ───────────────────────────────────────────────────── */
.haboot-map-wrap { margin-bottom: 12px; }
.haboot-fake-map {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  height: 200px;
  position: relative;
  overflow: hidden;
}
.haboot-map-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.08);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.haboot-map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.haboot-pin-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.haboot-pin-avatar.green { background: linear-gradient(135deg,#22c55e,#059669); }
.haboot-pin-avatar.blue  { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.haboot-pin-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #e2e8f0;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}
.haboot-map-zone {
  position: absolute;
  border: 2px dashed rgba(34,197,94,0.4);
  border-radius: 10px;
  background: rgba(34,197,94,0.05);
}
.haboot-trackers-row {
  display: flex;
  gap: 10px;
}
.haboot-tracker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
}
.haboot-tracker-name { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: #ddd; }
.haboot-tracker-state { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; }
.haboot-tracker-state.green { color: #22c55e; }
.haboot-tracker-state.blue  { color: #3b82f6; }

/* ── HISTORIQUE ──────────────────────────────────────────────── */
.haboot-history-block {
  margin-bottom: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
}
.haboot-history-entity-name {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.haboot-history-chart {
  display: flex;
  align-items: flex-end;
  height: 48px;
  gap: 1px;
}
.haboot-history-bar {
  flex: 1;
  border-radius: 2px;
  min-height: 4px;
  transition: all 0.15s;
  cursor: default;
}
.haboot-history-bar.line { align-self: initial; }
.haboot-history-hours {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #374151;
  margin-top: 4px;
}

/* ── JOURNAL ─────────────────────────────────────────────────── */
.haboot-log-list { display: flex; flex-direction: column; gap: 4px; }
.haboot-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.haboot-log-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.haboot-log-text { font-family: 'Inter', sans-serif; font-size: 11px; color: #d1d5db; font-weight: 600; }
.haboot-log-meta { font-family: 'Inter', sans-serif; font-size: 10px; color: #4b5563; margin-top: 2px; }
.haboot-log-who { font-weight: 800; }

/* ── TODO ────────────────────────────────────────────────────── */
.haboot-todo-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.haboot-todo-list-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.haboot-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  transition: all 0.15s;
}
.haboot-todo-item:last-child { border-bottom: none; }
.haboot-todo-item.done { color: #4b5563; text-decoration: line-through; }
.haboot-todo-check {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #22c55e;
  flex-shrink: 0;
  transition: all 0.15s;
}
.haboot-todo-item.done .haboot-todo-check {
  background: rgba(34,197,94,0.2);
  border-color: #22c55e;
}

/* ── LIST ITEMS (automations/scripts) ───────────────────────── */
.haboot-list-items { display: flex; flex-direction: column; gap: 6px; }
.haboot-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.haboot-list-item:hover { background: rgba(255,255,255,0.06); }
.haboot-item-icon { font-size: 18px; flex-shrink: 0; }
.haboot-item-body { flex: 1; }
.haboot-item-name  { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800; color: #e2e8f0; }
.haboot-item-desc  { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; margin-top: 1px; }
.haboot-item-runs  { font-family: 'Inter', sans-serif; font-size: 9px; color: #374151; margin-top: 2px; }
.haboot-item-toggle {
  width: 32px; height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.haboot-item-toggle.on { background: #22c55e; }
.haboot-item-toggle::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left 0.2s;
}
.haboot-item-toggle.on::after { left: 17px; }
.haboot-run-btn {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.haboot-run-btn:hover { background: rgba(34,197,94,0.3); }

/* ── SCÈNES ──────────────────────────────────────────────────── */
.haboot-scenes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.haboot-scene-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--scene-color);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.haboot-scene-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.haboot-scene-card.activated { border-color: var(--scene-color); background: rgba(255,255,255,0.06); }
.haboot-scene-name { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 900; color: #e2e8f0; margin-bottom: 4px; }
.haboot-scene-desc { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; margin-bottom: 8px; line-height: 1.4; }
.haboot-scene-activate-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.haboot-scene-activate-btn:hover { background: var(--scene-color); color: white; border-color: var(--scene-color); }

/* ── ADD-ONS ─────────────────────────────────────────────────── */
.haboot-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.haboot-addon-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 8px 10px;
}
.haboot-addon-card.running { border-left: 2px solid #22c55e; }
.haboot-addon-icon { font-size: 20px; flex-shrink: 0; }
.haboot-addon-body { flex: 1; }
.haboot-addon-name { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800; color: #ddd; }
.haboot-addon-desc { font-family: 'Inter', sans-serif; font-size: 9px; color: #6b7280; }
.haboot-addon-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #6b7280;
}
.haboot-addon-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.haboot-addon-dot.green { background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.haboot-addon-dot.gray  { background: #374151; }

/* ── PARAMÈTRES ──────────────────────────────────────────────── */
.haboot-settings-list { display: flex; flex-direction: column; }
.haboot-settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s;
}
.haboot-settings-item:hover { background: rgba(255,255,255,0.03); border-radius: 8px; }
.haboot-settings-icon { font-size: 18px; flex-shrink: 0; }
.haboot-settings-body { flex: 1; }
.haboot-settings-title { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800; color: #e2e8f0; }
.haboot-settings-desc  { font-family: 'Inter', sans-serif; font-size: 10px; color: #6b7280; }
.haboot-settings-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #4b5563;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 2px 8px;
}
.haboot-settings-arrow { font-size: 16px; color: #374151; }
.haboot-version-footer {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #374151;
  text-align: center;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── STATUS BAR ──────────────────────────────────────────────── */
.haboot-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 6px 12px;
  gap: 12px;
}
.haboot-status-phase {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.haboot-status-progress { flex: 1; display: flex; align-items: center; gap: 8px; }
.haboot-status-bar-outer {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.haboot-status-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 99px;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.haboot-status-pct {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #22c55e;
  min-width: 32px;
  text-align: right;
}

/* ── RESTART BUTTON ──────────────────────────────────────────── */
.haboot-dash-restart {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #374151;
  cursor: pointer;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.haboot-dash-restart:hover { color: #9ca3af; border-color: rgba(255,255,255,0.08); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  .haboot-dash-grid        { grid-template-columns: repeat(2, 1fr); }
  .haboot-energy-stats     { grid-template-columns: repeat(2, 1fr); }
  .haboot-scenes-grid      { grid-template-columns: 1fr; }
  .haboot-addons-grid      { grid-template-columns: 1fr; }
  .haboot-dash-sidebar     { width: 46px; }
  .haboot-dash-logo-text   { display: none; }
  .haboot-nav-label        { display: none; }
  .haboot-user-info        { display: none; }
  .haboot-dot-label        { display: none; }
}
