/* Franken UI (shadcn benzeri) uzerine sadece layout + birkac ozel oge.
   Renkler Franken UI'nin shadcn token'larindan (hsl var). */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.vc-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vc-card { width: 100%; max-width: 380px; }

/* Dikey bosluk (Tailwind space-y purge edildigi icin elle) */
.vc-stack > * + * { margin-top: 16px; }
.vc-stack-sm > * + * { margin-top: 10px; }

.vc-center { text-align: center; }
.vc-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.vc-title-sm { margin: 0; font-size: 17px; font-weight: 600; }
.vc-muted { margin: 4px 0 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.vc-small { font-size: 12px; line-height: 1.4; }
.vc-msg { min-height: 20px; margin: 0; font-size: 13px; text-align: center; color: hsl(var(--muted-foreground)); }
.vc-full { width: 100%; }
.vc-code { text-align: center; letter-spacing: .5em; font-size: 20px; font-variant-numeric: tabular-nums; }

.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vc-status { font-size: 13px; color: hsl(var(--muted-foreground)); }

.vc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vc-grid3 .uk-btn { width: 100%; }

.vc-label { display: block; font-size: 13px; color: hsl(var(--muted-foreground)); }
.vc-label .uk-select { display: block; width: 100%; margin-top: 4px; }

.vc-nearby { list-style: none; padding: 0; margin: 0; }
.vc-nearby:empty { display: none; }
.vc-nearby li {
  padding: 8px 12px; margin-top: 6px; border-radius: 8px;
  background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: 14px;
}

/* Mikrofon/hoparlor kapali durumu (devices.js .off ekler) */
.uk-btn.off { opacity: .5; }

/* Ping/gecikme rozeti — netClass() data-q verir */
.vc-ping { font-variant-numeric: tabular-nums; }
.vc-ping[data-q="ok"]   { background: #16a34a; border-color: #16a34a; color: #fff; }
.vc-ping[data-q="warn"] { background: #d97706; border-color: #d97706; color: #fff; }
.vc-ping[data-q="bad"]  { background: #dc2626; border-color: #dc2626; color: #fff; }
