@font-face { font-family: 'Noken'; src: url('/static/NokenBold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Noken'; src: url('/static/NokenRegular.woff2') format('woff2'); font-weight: 400; font-style: normal; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #ff4d00;
  --accent-hover: #e04400;
  --blue: #19196c;
  --blue-light: #2a2a9a;
  --user-bubble: #19196c;
  --bot-bubble: #1a1a1a;
}

body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; height: 100vh; }

/* ── LOGIN ───────────────────────────────────────────────────────────────── */
.login-body { display: flex; align-items: center; justify-content: center; }
.login-container { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 380px; text-align: center; }
.login-logo-img { height: 40px; margin-bottom: 6px; }
.login-logo-sub { font-size: 1rem; font-weight: 700; color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.login-logo p { color: var(--muted); margin-top: 4px; margin-bottom: 32px; font-size: 0.9rem; }
.login-container input { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.login-container input:focus { outline: none; border-color: var(--accent); }
.login-container button { width: 100%; padding: 12px; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; font-weight: 600; }
.login-container button:hover { background: var(--accent-hover); }
.error-msg { background: #3a1a1a; color: #ff8080; padding: 10px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }

/* ── CLIENT SELECTION SCREEN ─────────────────────────────────────────────── */
.client-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.client-screen-inner { width: 100%; max-width: 640px; }
.client-screen-header { text-align: center; margin-bottom: 32px; }
.client-logo-img { height: 44px; margin-bottom: 6px; }
.client-logo-sub { font-size: 1rem; font-weight: 700; color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.client-screen-sub { color: var(--muted); font-size: 0.95rem; }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.client-card { background: var(--surface); border: 2px solid var(--border); border-radius: 14px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.client-card:hover { border-color: var(--blue-light); background: #12123a; }
.client-card.selected { border-color: var(--blue-light); background: #12123a; }
.client-card-emoji { font-size: 1.6rem; }
.client-card-sigla { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; }
.client-card-nome { font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.3; }

.client-screen-user { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 12px; }
.client-screen-user label { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.client-screen-user input { flex: 1; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.9rem; }
.client-screen-user input:focus { outline: none; border-color: var(--accent); }
.client-screen-user button { padding: 10px 24px; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.client-screen-user button:hover { background: var(--accent-hover); }

/* ── MAIN APP ────────────────────────────────────────────────────────────── */
.app { display: flex; height: 100vh; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar { width: 240px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 16px; gap: 12px; }
.sidebar-logo { display: flex; flex-direction: column; gap: 3px; }
.sidebar-logo-img { height: 28px; display: block; }
.sidebar-logo-sub { font-size: 0.65rem; font-weight: 700; color: var(--blue-light); letter-spacing: 0.15em; text-transform: uppercase; }
.sidebar-client-badge { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #0e0e2a; border: 1px solid var(--blue); border-radius: 8px; }
.badge-emoji { font-size: 1rem; }
.badge-text { font-size: 0.8rem; color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-info label { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 6px; }
.sidebar-info input { width: 100%; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.9rem; }
.sidebar-info input:focus { outline: none; border-color: var(--accent); }
.new-chat-btn { padding: 10px; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.new-chat-btn:hover { background: var(--accent-hover); }
.change-client-btn { padding: 8px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.82rem; }
.change-client-btn:hover { color: var(--text); border-color: var(--muted); }
.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.conv-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background 0.15s; position: relative; }
.conv-item:hover { background: var(--border); }
.conv-item.active { background: #2a1a0e; border-left: 2px solid var(--accent); }
.conv-title { display: block; font-size: 0.82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.conv-user { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.conv-delete { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: none; border: none; color: var(--muted); font-size: 0.9rem; cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s; padding: 2px 4px; line-height: 1; }
.conv-item:hover .conv-delete { opacity: 1; }
.conv-delete:hover { color: #ff6060; }
.conv-empty { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 16px 0; }
.logs-link { color: var(--muted); font-size: 0.85rem; text-decoration: none; text-align: center; padding-top: 8px; border-top: 1px solid var(--border); }
.logs-link:hover { color: var(--text); }

/* ── CHAT ────────────────────────────────────────────────────────────────── */
.chat-area { flex: 1; display: flex; flex-direction: column; }
.messages { flex: 1; overflow-y: auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.welcome { text-align: center; margin: auto; color: var(--muted); }
.welcome h3 { color: var(--text); margin-bottom: 8px; }

.message { display: flex; }
.message.user { justify-content: flex-end; }
.message.assistant { justify-content: flex-start; }
.bubble { max-width: 70%; padding: 12px 16px; border-radius: 16px; line-height: 1.6; font-size: 0.95rem; }
.message.user .bubble { background: var(--user-bubble); border-bottom-right-radius: 4px; }
.message.assistant .bubble { background: var(--bot-bubble); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message.thinking .bubble { color: var(--muted); }

.input-area { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-end; }
.input-area textarea { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text); font-size: 0.95rem; resize: none; max-height: 160px; font-family: inherit; line-height: 1.5; }
.input-area textarea:focus { outline: none; border-color: var(--accent); }
.input-area button { padding: 12px 20px; background: var(--accent); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.input-area button:hover { background: var(--accent-hover); }
.input-area button:disabled { opacity: 0.5; cursor: default; }

/* ── TASK CARD ───────────────────────────────────────────────────────────── */
.task-card { display: flex; align-items: center; gap: 12px; background: #0d2a1a; border: 1px solid #1a5c30; border-radius: 12px; padding: 12px 16px; margin: 0 0 4px 0; }
.task-icon { font-size: 1.2rem; }
.task-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.task-label { font-size: 0.75rem; color: #4caf7d; }
.task-name { font-size: 0.9rem; color: var(--text); }
.task-link { color: var(--accent); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.task-link:hover { text-decoration: underline; }

/* ── LOGS ────────────────────────────────────────────────────────────────── */
.logs-page { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.logs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.logs-header h2 { font-size: 1.4rem; }
.logs-header h2 span { color: var(--accent); }
.logs-header a { color: var(--accent); text-decoration: none; }
.log-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.log-meta { display: flex; gap: 16px; margin-bottom: 10px; }
.log-user { color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.log-time { color: var(--muted); font-size: 0.85rem; }
.log-q { margin-bottom: 6px; font-size: 0.9rem; }
.log-a { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.empty { color: var(--muted); text-align: center; margin-top: 48px; }

/* ── MARKDOWN RENDERING ──────────────────────────────────────────────────── */

/* Parágrafos */
.bubble p { margin: 0 0 10px; }
.bubble p:last-child { margin-bottom: 0; }

/* Headers */
.bubble h1, .bubble h2, .bubble h3, .bubble h4 { font-weight: 600; margin: 14px 0 6px; line-height: 1.3; }
.bubble h1 { font-size: 1.1rem; color: var(--text); }
.bubble h2 { font-size: 1rem; color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.bubble h3 { font-size: 0.92rem; color: #ccc; }
.bubble h4 { font-size: 0.88rem; color: var(--muted); }

/* Listas */
.bubble ul, .bubble ol { padding-left: 20px; margin: 6px 0 10px; }
.bubble li { margin: 3px 0; line-height: 1.5; }
.bubble li p { margin: 0; }

/* Código inline */
.bubble code { background: #252525; border: 1px solid #333; padding: 1px 6px; border-radius: 4px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.82em; color: #e0a07a; }

/* Bloco de código */
.bubble pre { background: #141414; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; }
.bubble pre code { background: none; border: none; padding: 0; color: #ccc; font-size: 0.85em; }

/* Tabelas */
.bubble table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.875rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.bubble thead { background: #252525; }
.bubble th { padding: 9px 13px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.bubble td { padding: 8px 13px; border-bottom: 1px solid #1e1e1e; color: var(--text); }
.bubble tr:last-child td { border-bottom: none; }
.bubble tbody tr:hover { background: #1f1f1f; }

/* Blockquotes / Callouts */
.bubble blockquote { border-left: 3px solid var(--border); background: #181818; border-radius: 0 6px 6px 0; padding: 10px 14px; margin: 8px 0; color: var(--muted); font-size: 0.92rem; }
.bubble blockquote.alert-warning { border-color: #f0a500; background: #1e1900; color: #e8c97a; }
.bubble blockquote.alert-danger  { border-color: #cc3333; background: #1e0e0e; color: #e07070; }
.bubble blockquote.alert-caution { border-color: #cc7700; background: #1e1500; color: #e0a050; }
.bubble blockquote.alert-success { border-color: #2d8a4e; background: #0e1e14; color: #6fcf8a; }
.bubble blockquote.alert-info    { border-color: #3366cc; background: #0e1220; color: #7aabde; }

/* Parágrafos com alert inline */
.bubble p.alert { display: block; border-radius: 6px; padding: 9px 13px; margin: 6px 0; font-size: 0.9rem; }
.bubble p.alert-warning { background: #1e1900; border-left: 3px solid #f0a500; color: #e8c97a; }
.bubble p.alert-danger  { background: #1e0e0e; border-left: 3px solid #cc3333; color: #e07070; }
.bubble p.alert-caution { background: #1e1500; border-left: 3px solid #cc7700; color: #e0a050; }
.bubble p.alert-success { background: #0e1e14; border-left: 3px solid #2d8a4e; color: #6fcf8a; }
.bubble p.alert-info    { background: #0e1220; border-left: 3px solid #3366cc; color: #7aabde; }

/* Separador */
.bubble hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* Bold e itálico */
.bubble strong { font-weight: 600; color: #f0f0f0; }
.bubble em { color: #bbb; }

/* ── SPECIALIST BADGE ────────────────────────────────────────────────────── */
.specialist-badge { align-self: flex-start; background: #1a2a1a; border: 1px solid #2a5c2a; color: #6fcf6f; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; margin-bottom: -8px; opacity: 1; transition: opacity 0.6s ease; }
.specialist-badge.fade-out { opacity: 0; }

/* ── TYPING DOTS ─────────────────────────────────────────────────────────── */
.message.thinking .bubble { min-width: 64px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; }
.typing-dots { display: inline-flex; align-items: center; gap: 7px; }
.typing-dots span { display: inline-block; width: 9px; height: 9px; background: #aaa; border-radius: 50%; animation: typing-bounce 1.3s infinite ease-in-out; }
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.22s; }
.typing-dots span:nth-child(3) { animation-delay: 0.44s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); background: #555; }
  30% { transform: translateY(-6px); background: #e8e8e8; }
}

/* ── HOME ────────────────────────────────────────────────────────────────── */
.home-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.home-container { width: 100%; max-width: 560px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.home-header { text-align: center; margin-bottom: 40px; }
.home-logo { height: 28px; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto; }
.home-sinapse-name { font-family: 'Noken', sans-serif; font-size: 3.8rem; font-weight: 400; letter-spacing: 0.01em; color: var(--text); line-height: 1; margin-bottom: 14px; }
.home-sub { color: var(--muted); font-size: 1rem; }

.home-cards { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.home-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px; text-decoration: none; color: var(--text); transition: border-color 0.15s, background 0.15s; }
.home-card:hover { border-color: var(--accent); background: #1f1210; }
.home-card-icon { font-size: 1.8rem; flex-shrink: 0; width: 44px; text-align: center; }
.home-card-body { flex: 1; }
.home-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.home-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.home-card-arrow { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; transition: color 0.15s, transform 0.15s; }
.home-card:hover .home-card-arrow { color: var(--accent); transform: translateX(4px); }

.home-footer-link { margin-top: 28px; color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.home-footer-link:hover { color: var(--text); }
.home-logout { margin-top: 8px; opacity: 0.5; }
.home-logout:hover { color: #ff6b6b; opacity: 1; }

/* ── ATA ─────────────────────────────────────────────────────────────────── */
.ata-layout { display: flex; height: 100vh; }

.ata-sidebar { width: 280px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 16px; gap: 12px; flex-shrink: 0; }
.ata-back-btn { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.ata-back-btn:hover { color: var(--text); }
.ata-sidebar-title { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 4px; border-top: 1px solid var(--border); }

.ata-meeting-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ata-meeting-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.ata-meeting-item:hover { background: var(--border); }
.ata-meeting-item.active { background: #1f1210; border-color: var(--accent); }
.ata-meeting-title { font-size: 0.85rem; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.ata-meeting-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ata-meeting-date { font-size: 0.75rem; color: var(--muted); }
.ata-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.ata-badge-notes { background: #12123a; color: #6a6af0; }
.ata-badge-summary { background: #0e1e14; color: #4caf7d; }

.ata-refresh-btn { padding: 8px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.82rem; }
.ata-refresh-btn:hover { color: var(--text); border-color: var(--muted); }

.ata-loading, .ata-empty, .ata-error { font-size: 0.82rem; color: var(--muted); padding: 16px 8px; text-align: center; }
.ata-error { color: #e07070; }

/* ── ATA MAIN ────────────────────────────────────────────────────────────── */
.ata-main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; }

.ata-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 480px; width: 100%; }
.ata-state-icon { font-size: 2.8rem; }
.ata-state-title { font-size: 1.25rem; font-weight: 600; }
.ata-state-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.ata-spin { display: inline-block; animation: spin 1.5s linear infinite; }

/* Config form */
.ata-config-header { text-align: center; margin-bottom: 8px; }
.ata-config-meeting { font-size: 1.1rem; font-weight: 600; }
.ata-config-date { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.ata-config-form { width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.ata-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ata-client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ata-client-card { background: var(--surface); border: 2px solid var(--border); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 1rem; }
.ata-client-card:hover { border-color: var(--blue-light); background: #12123a; }
.ata-client-card.selected { border-color: var(--accent); background: #1f1210; }
.ata-client-sigla { font-size: 0.7rem; color: var(--accent); font-weight: 700; }
.ata-client-nome { font-size: 0.62rem; color: var(--muted); text-align: center; line-height: 1.2; }
.ata-client-custom { margin-top: -4px; }
.ata-input { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.9rem; }
.ata-input:focus { outline: none; border-color: var(--accent); }
.ata-generate-btn { padding: 13px; background: var(--accent); color: white; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.ata-generate-btn:hover { background: var(--accent-hover); }
.ata-generate-btn:disabled { opacity: 0.5; cursor: default; }

/* Result */
.ata-result-wrapper { display: flex; flex-direction: column; width: 100%; max-width: 720px; height: 100%; gap: 0; align-self: stretch; justify-content: flex-start; }
.ata-result-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid var(--border); gap: 12px; }
.ata-result-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.ata-result-actions { display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.ata-clickup-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ata-clickup-group-label { font-size: 0.7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.ata-clickup-group-btns { display: flex; gap: 8px; }
.ata-btn-secondary, .ata-btn-tasks, .ata-btn-publish { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap; box-sizing: border-box; line-height: 1; -webkit-appearance: none; }
.ata-btn-secondary { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.ata-btn-secondary:hover { color: var(--text); border-color: var(--muted); }
.ata-btn-publish { background: var(--accent); color: white; border: none; font-weight: 700; }
.ata-btn-publish:hover { background: var(--accent-hover); }
.ata-btn-publish:disabled { opacity: 0.5; cursor: default; }

.ata-result-content { flex: 1; overflow-y: auto; padding: 32px; font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.ata-result-content h2 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.ata-result-content h3 { font-size: 0.92rem; font-weight: 600; margin: 14px 0 6px; color: #ccc; }
.ata-result-content p { margin: 0 0 10px; }
.ata-result-content ul, .ata-result-content ol { padding-left: 20px; margin: 6px 0 10px; }
.ata-result-content li { margin: 4px 0; }
.ata-result-content strong { font-weight: 600; color: #f0f0f0; }
.ata-result-content hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.ata-result-content input[type="checkbox"] { margin-right: 6px; }

.ata-clickup-link { color: var(--accent); font-size: 1rem; text-decoration: none; font-weight: 600; }
.ata-clickup-link:hover { text-decoration: underline; }

.ata-btn-tasks { background: var(--blue-light); color: #fff; border: none; font-weight: 700; }
.ata-btn-tasks:hover { background: var(--blue); }
.ata-btn-tasks:disabled { opacity: 0.5; cursor: default; }

/* ── TASKS MODAL ─────────────────────────────────────────────────────────── */
.tasks-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.tasks-modal-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 560px; max-height: 80vh; display: flex; flex-direction: column; }
.tasks-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.tasks-modal-title { font-size: 1rem; font-weight: 600; }
.tasks-modal-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.tasks-modal-close:hover { color: var(--text); }
.tasks-modal-body { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.tasks-modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.task-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.task-item-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.task-item-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.task-item-info { flex: 1; }
.task-item-name { font-size: 0.9rem; color: var(--text); line-height: 1.4; }
.task-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.task-meta-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; background: var(--border); color: var(--muted); }
.task-meta-area   { background: #1a1f0e; color: #9cbb5a; }
.task-meta-client { background: #12123a; color: #7a7af0; }
.task-meta-cardo  { background: #1f1210; color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 200px; }
  .ata-sidebar { width: 220px; }
  .ata-client-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Apresentações ── */
.apres-form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.apres-row { display: flex; flex-direction: column; gap: 8px; }
.apres-label { font-size: 13px; font-weight: 600; color: #8a9bb0; text-transform: uppercase; letter-spacing: 0.05em; }
.apres-input, .apres-textarea {
  background: #1a273a; border: 1px solid #2a3f58; border-radius: 10px;
  color: #f2f5fa; font-size: 15px; padding: 12px 14px; outline: none;
  font-family: inherit; resize: vertical;
}
.apres-input:focus, .apres-textarea:focus { border-color: #487cff; }
.apres-radio-group { display: flex; gap: 12px; }
.apres-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; color: #f2f5fa; }
.apres-radio input[type="radio"] { accent-color: #f4621f; width: 16px; height: 16px; }
.apres-btn {
  background: #f4621f; color: #fff; border: none; border-radius: 10px;
  padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.2s;
}
.apres-btn:hover:not(:disabled) { background: #d9511a; }
.apres-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.apres-erro { background: #2a1a1a; border: 1px solid #c0392b; border-radius: 10px; padding: 14px; color: #e74c3c; font-size: 14px; }
