/* debot gateway UI overrides */

:root {
  --debot-accent: #6366f1;
}

body {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

nav .brand {
  font-weight: 700;
  font-size: 1.25rem;
}

nav .version {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 0.5rem;
}

/* Tab navigation */
[role="tablist"] {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
  background: var(--pico-muted-border-color);
  border-radius: 8px;
  padding: 4px;
}

[role="tab"] {
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

[role="tab"]:hover {
  color: var(--pico-color);
  background: color-mix(in srgb, var(--pico-background-color) 50%, transparent);
}

[role="tab"][aria-selected="true"] {
  background: var(--debot-accent);
  color: #fff;
  font-weight: 600;
}

/* Status cards */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-card {
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--pico-muted-border-color);
}

.status-card .label {
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.dot.green  { background: #22c55e; }
.dot.yellow { background: #eab308; }
.dot.red    { background: #ef4444; }
.dot.gray   { background: #9ca3af; }

/* Form sections */
.field-group {
  margin-bottom: 1.5rem;
}

.field-group h4 {
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: var(--debot-accent);
  color: #fff;
  font-size: 0.9rem;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
