/* ==========================================================================
   aiPrivate Console — Light Blue Glass Theme
   White canvas, blue-glass panels, trustworthy vibes. CWP / no-build friendly.
   ========================================================================== */

:root {
  /* Brand + surface */
  --bg: #ffffff;
  --panel: rgba(201,230,255,0.55);       /* light blue glass */
  --edge: rgba(30,120,200,0.22);         /* soft blue border */
  --text: #0e1b2b;                       /* ink */
  --muted: #4b5b70;                      /* supportive text */

  /* Accents */
  --accent: #1e90ff;                     /* primary blue */
  --accent2: #6dd5ff;                    /* gradient partner */

  /* Inputs */
  --input-bg: #f7fbff;                   /* subtle blue-tinted white */
  --input-border: rgba(30,120,200,0.22);
  --input-focus: #1e90ff33;              /* focus ring */

  /* Chat well */
  --chat-bg: rgba(201,230,255,0.35);     /* lighter glass */
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at -10% -10%, rgba(30,144,255,.10), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(109,213,255,.10), transparent 60%),
    var(--bg);
}

/* Header */
.header {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  position: sticky; top:0; z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}
.brand { font-weight: 800; letter-spacing: .2px; display:flex; align-items:center; gap:8px }
.brand .ai { color: var(--accent); }
.brand .private { color: var(--text); }
.tag { font-size: 12px; color: var(--muted); margin-left:8px; padding:2px 8px; border:1px solid var(--edge); border-radius:999px; background: rgba(255,255,255,0.6) }

.wrap { max-width: 1100px; margin: 0 auto; padding: 16px }
.grid { display:grid; gap:12px; grid-template-columns: 260px 1fr; }

/* Panels (cards) */
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(30,144,255,0.15);
}

/* Type & labels */
h1, h2, h3 { margin: 8px 0; }
h2 { font-size: 15px; color: var(--muted); font-weight:600; letter-spacing:.3px }
label { font-size: 13px; color: var(--muted); display:block; margin: 8px 0 6px }
.small { font-size: 12px; color: var(--muted) }
.mono { font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace }
.kicker { font-size: 12px; color: var(--muted) }
.sep { height:1px; background: var(--edge); margin:12px 0 }

/* Form elements */
input, select, textarea {
  width:100%;
  padding:10px 12px;
  background: var(--input-bg);
  border:1px solid var(--input-border);
  border-radius:10px;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s, border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px var(--input-focus);
  border-color: var(--accent);
  background: #ffffff;
}
textarea { min-height: 90px; resize: vertical }

/* Buttons */
button, .btn {
  cursor: pointer;
  border:1px solid var(--edge);
  background:#ffffff;
  color:var(--text);
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
}
button:hover, .btn:hover { background:#ffffffee; box-shadow: 0 6px 24px rgba(30,144,255,0.12) }
button:active, .btn:active { transform: translateY(1px) }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#06233c;                    /* readable on light gradient */
  border: none;
  font-weight:700;
}
.btn-ghost { background: transparent }

/* Links & badges */
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.badge {
  font-size: 11px; padding:2px 6px;
  border:1px solid var(--edge); border-radius: 8px;
  color: var(--muted); background: rgba(255,255,255,0.6)
}

/* Chat well */
.chat {
  height: 62vh;
  overflow:auto; padding: 12px;
  border-radius: 12px;
  background: var(--chat-bg);
  border:1px solid var(--edge);
}
.msg { margin: 8px 0; line-height:1.55; color: var(--text) }
.msg .role { font-size: 11px; color: var(--muted) }

/* Composer */
.inputrow { display:flex; gap:8px; margin-top:8px }
.inputrow textarea { flex:1 }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
