/* Extra styles for index.html (dashboard only) */

/* ---------- Total revenue ---------- */
.amount-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.revenue .big { font-size: 30px; }

.icon-btn {
  all: unset;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; }
.icon-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .eye-off { display: none; }
.icon-btn[aria-pressed="true"] .eye-off { display: block; }
.icon-btn[aria-pressed="true"] .eye { display: none; }

.subline { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.subline b { font-weight: 500; color: var(--ink); }
.up { font-size: 12px; color: var(--ok); }

/* ---------- Status (Fibre + Hotspot) ---------- */
.status-block + .status-block { margin-top: 14px; }
.status-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status-block .split { gap: 22px; margin-top: 4px; }
.status-block .tick b { font-size: 22px; }

.ap-info { margin-top: 4px; }
.ap-info.warn { color: var(--accent-2); }

/* ---------- Statistic card fills its row ---------- */
.stat-card { display: flex; flex-direction: column; }
.stat-card .chart { flex: 1; height: auto; min-height: 230px; }

/* ---------- AI agent screen ---------- */
.agent {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: inset 3px 3px 7px var(--shadow), inset -3px -3px 7px var(--light);
}

.alert {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  background: #d92b3a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.alert .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.alert .text { flex: 1; }
.alert svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; transition: transform 0.2s; }
.alert[aria-expanded="true"] svg { transform: rotate(90deg); }
.alert:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.alert.ok { background: var(--ok); cursor: default; }
.alert.ok .pulse { animation: none; }
.alert.ok svg { display: none; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

.alert-more { padding: 0 4px; font-size: 12px; line-height: 1.4; }

.log { display: grid; gap: 6px; max-height: 118px; overflow-y: auto; font-size: 12.5px; }
.msg { max-width: 92%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; background: var(--control); }
.msg small { display: block; margin-bottom: 1px; font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); }
.msg.user { justify-self: end; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  all: unset;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--control);
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.chip:hover:not(:disabled) { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #fff; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.chip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .alert .pulse { animation: none; }
}