/* ─────────────────────────────────────────────────────────────────────────────
   Zopi brand tokens — matched to Zopi Phone (zopi_phone_electron/src/styles.css)
   so all Zopi desktop products share one design language.

   Fonts are bundled locally (assets/fonts) rather than loaded from Google Fonts:
   the client runs on customer machines that may be offline or firewalled, and
   the app's CSP is default-src 'self'.
   ──────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('fonts/syne.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';          /* wordmark only */
  src: url('fonts/poppins700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg:        #0D1B2A;
  --surface:   #152033;
  --surface2:  #1c2e47;
  --surface3:  #243858;

  /* Brand */
  --accent:    #00C2FF;   /* Zopi cyan */
  --accent2:   #5FD8FF;   /* lighter cyan, for highlights/active states */
  --purple:    #7B2FBE;   /* Zopi secondary */

  /* Status */
  --success:   #4ade80;
  --warning:   #fbbf24;
  --danger:    #f87171;

  /* Text */
  --text:      #ffffff;
  --muted:     #9BAFC4;
  --muted2:    #7A90A8;

  /* Lines */
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);

  --accent-rgb: 0,194,255;
  --danger-rgb: 248,113,113;
  --radius:     10px;

  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Syne', 'Segoe UI', sans-serif;
}

body { font-family: var(--font-body); }

/* Wordmark logo (inlined SVG so the bundled Poppins applies) */
.brand-logo { display: block; width: auto; height: 18px; }

/* Window controls — matched to Zopi Phone's titlebar buttons */
.win-controls { display: flex; gap: 2px; -webkit-app-region: no-drag; }
.win-controls button {
  width: 28px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted2);
  border-radius: 5px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.win-controls button:hover { background: var(--surface2); color: var(--text); }
.win-controls .btn-close:hover { background: rgba(var(--danger-rgb), 0.2); color: var(--danger); }
