/* Painel do CLS — irmão do AZDIN. Acento em azul-professor para separar os dois
   estúdios à primeira vista (o AZDIN é laranja Avante). */

:root {
  --bg: #0d1220;
  --panel: #141b2d;
  --panel-2: #1c2740;
  --line: #2a3752;
  --text: #e8eef6;
  --muted: #8fa0bd;
  --accent: #4f9dff;
  --accent-strong: #2f6fd6;
  --green: #5bd07a;
  --red: #e05666;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--red); min-height: 1.2em; margin: 8px 0 0; font-size: 14px; }

button {
  background: var(--accent); color: #06101f; border: none; border-radius: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
button:hover { background: var(--accent-strong); color: #fff; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
button.ghost:hover { color: var(--text); background: var(--panel-2); }

.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card h1 { margin: 0; letter-spacing: 4px; color: var(--accent); }
.login-card input {
  width: 100%; margin-top: 20px; padding: 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px;
}
.login-card button { width: 100%; margin-top: 12px; }

header {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand strong { color: var(--accent); letter-spacing: 3px; font-size: 18px; }
header nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
header nav button {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500;
}
header nav button:hover { color: var(--text); background: var(--panel-2); }
header nav button.active { color: var(--text); background: var(--panel-2); border-color: var(--line); }

main { padding: 24px; max-width: 1000px; margin: 0 auto; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
h2 { margin-top: 0; }
input, textarea, select {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; }

.lista-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
  cursor: pointer;
}
.lista-item:hover { background: var(--panel-2); }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: var(--panel-2); color: var(--muted); }
.badge.ok { background: rgba(91,208,122,.15); color: var(--green); }
.aviso { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--panel-2); border-radius: 6px; font-size: 14px; }

/* Chat com o Fernando */
.chat { display: flex; flex-direction: column; height: 60vh; min-height: 400px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 8px; }
.msg { margin-bottom: 14px; }
.msg .quem { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .texto { white-space: pre-wrap; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); }
.msg.usuario .texto { background: var(--accent-strong); color: #fff; }
.msg.fernando .texto { background: var(--panel-2); }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form textarea { resize: vertical; min-height: 46px; }
.chat-form button { align-self: flex-end; }

pre.md { white-space: pre-wrap; font-family: inherit; }
