/* Dashboard design copied from /design/code.html and adapted for live data bindings. */

:root {
  color-scheme: light;
}

.dashboard-body {
  margin: 0;
  min-height: 100vh;
  background-color: #f9f9fe;
  background-image:
    radial-gradient(at 0% 0%, rgba(237, 237, 242, 0.5) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(226, 226, 231, 0.3) 0, transparent 50%);
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.glass-border-subtle {
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.levitate-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.levitate-md {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.06);
}

.levitate-lg {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.04);
}

.status-dot {
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.status-line {
  transition: color 240ms ease;
}

.status-protected {
  background-color: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.status-unprotected {
  background-color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
}

.status-line.status-protected {
  color: #166534;
}

.status-line.status-unprotected {
  color: #b91c1c;
}

.hero-network {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 38%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 52%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 66%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(245deg, rgba(255, 255, 255, 0.12), transparent 38%);
  filter: blur(0.2px);
}

.hero-network::before,
.hero-network::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-network::before {
  background:
    linear-gradient(18deg, transparent 46%, rgba(255, 255, 255, 0.24) 49%, transparent 52%),
    linear-gradient(74deg, transparent 45%, rgba(255, 255, 255, 0.2) 48%, transparent 51%),
    linear-gradient(128deg, transparent 52%, rgba(255, 255, 255, 0.18) 55%, transparent 58%);
  opacity: 0.65;
}

.hero-network::after {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24), transparent 64%);
}

#open-happ-btn {
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

#open-happ-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

#open-happ-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.secondary-action-btn {
  border: 1px solid rgba(24, 24, 27, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #18181b;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.secondary-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
}

.secondary-action-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.share-info-card {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.share-status {
  margin: 0;
  color: #18181b;
  font-size: 12px;
  font-weight: 700;
}

.share-warning {
  margin: 6px 0 0;
  color: #71717a;
  font-size: 12px;
}

.share-link-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.share-link-input {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 12px;
  padding: 8px 10px;
}

.copy-share-link-btn {
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.18);
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.feedback-chip {
  min-height: 24px;
  margin-top: 16px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #52525b;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.feedback-chip.is-error {
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.82);
  border-color: rgba(252, 165, 165, 0.7);
}

.tiny-note {
  color: #71717a;
  font-size: 12px;
}

.icon-action-btn {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #52525b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.icon-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  color: #09090b;
}

.icon-action-btn:focus-visible {
  outline: 2px solid rgba(24, 24, 27, 0.35);
  outline-offset: 2px;
}

.icon-action-btn-active {
  background: #09090b;
  color: #ffffff;
}

.icon-action-btn-avatar {
  font-size: 12px;
  font-weight: 700;
}

.top-info-panel {
  margin-top: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
  padding: 16px;
}

.top-panel-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #18181b;
  letter-spacing: 0.01em;
}

.top-panel-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
}

.top-panel-item {
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.35;
}

.top-panel-grid {
  display: grid;
  gap: 10px;
}

.top-panel-label {
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #71717a;
  font-weight: 700;
}

.top-panel-value {
  margin: 0;
  font-size: 13px;
  color: #18181b;
  font-weight: 600;
}

.tariff-card {
  border-radius: 14px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tariff-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.tariff-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
}

.tariff-card-price {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #18181b;
}

.tariff-card-meta {
  margin: 0;
  color: #71717a;
  font-size: 12px;
}

.tariff-card-active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(240, 253, 244, 0.78);
  transform: translateY(-1px);
}

.traffic-infinity-symbol {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  color: #09090b;
}

@media (max-width: 1024px) {
  .dashboard-body nav {
    margin-left: 8px;
    margin-right: 8px;
  }
}
