/* ═══════════════════════════════════════
   CoopTask — Gestao Cooperativa de Tarefas
   Estilos Globais
   ═══════════════════════════════════════ */
:root {
  --bg: #f0f2f5;
  --card-bg: #fff;
  --sidebar-bg: #1e1e2e;
  --sidebar-text: #cdd6f4;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --green: #00b894;
  --green-bg: #d4f5e9;
  --green-border: #00b894;
  --yellow: #fdcb6e;
  --yellow-bg: #fef3d0;
  --yellow-border: #f39c12;
  --red: #e74c3c;
  --red-bg: #fde0dc;
  --red-border: #e74c3c;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dfe6e9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; }

/* ── LOGIN PAGE ── */
.login-page {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 50%, #6c5ce7 100%);
}
.login-card {
  background: #fff; border-radius: 20px; padding: 48px 40px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); max-width: 420px; width: 90%;
}
.login-logo { font-size: 3rem; margin-bottom: 8px; font-weight: bold; }
.login-card h1 { font-size: 1.8rem; color: var(--text); margin-bottom: 4px; }
.login-card .subtitle { color: var(--text-light); font-size: .9rem; margin-bottom: 32px; }
.login-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 24px; border-radius: 12px; border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text);
  transition: all .2s;
}
.login-btn-google:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(108,92,231,.2); transform: translateY(-1px); }
.login-btn-google img { width: 24px; height: 24px; }
.login-divider { margin: 20px 0; color: var(--text-light); font-size: .8rem; position: relative; }
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-email-group { text-align: left; margin-bottom: 12px; }
.login-email-group label { font-size: .78rem; color: var(--text-light); display: block; margin-bottom: 4px; }
.login-email-group input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .9rem; outline: none;
}
.login-email-group input:focus { border-color: var(--accent); }
.login-btn-email {
  width: 100%; padding: 12px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-size: .95rem; font-weight: 500;
  cursor: pointer; margin-top: 8px; transition: background .2s;
}
.login-btn-email:hover { background: #5b4cdb; }
.login-footer { margin-top: 24px; font-size: .75rem; color: var(--text-light); }

/* ── TEAM SELECTOR ── */
.team-selector-page {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.team-selector-card {
  background: #fff; border-radius: 20px; padding: 40px; max-width: 560px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.team-selector-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.team-selector-card .greeting { color: var(--text-light); font-size: .9rem; margin-bottom: 24px; }
.team-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.team-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: all .2s;
}
.team-option:hover { border-color: var(--accent); background: rgba(108,92,231,.04); }
.team-option-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.team-option-info { flex: 1; }
.team-option-name { font-weight: 600; font-size: .95rem; }
.team-option-role { font-size: .78rem; color: var(--text-light); }
.team-option-members { font-size: .72rem; color: var(--accent); }
.create-team-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border: 2px dashed var(--border); border-radius: 12px;
  background: transparent; cursor: pointer; color: var(--text-light); font-size: .9rem;
  transition: all .2s;
}
.create-team-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── INVITE CARDS ── */
.invite-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 2px solid var(--accent-light); border-radius: 12px; margin-bottom: 10px;
  background: rgba(108,92,231,.04); animation: invitePulse 2s ease infinite;
}
@keyframes invitePulse { 0%,100% { border-color: var(--accent-light) } 50% { border-color: var(--accent) } }
.invite-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.invite-card-info { flex: 1; }
.invite-card-name { font-weight: 600; font-size: .95rem; }
.invite-card-from { font-size: .78rem; color: var(--text-light); }
.invite-card-actions { display: flex; gap: 8px; }
.invite-btn {
  padding: 6px 16px; border-radius: 8px; border: none; font-size: .8rem;
  cursor: pointer; font-weight: 500; transition: all .2s;
}
.invite-btn-accept { background: var(--green); color: #fff; }
.invite-btn-accept:hover { background: #00a383; }
.invite-btn-decline { background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }
.invite-btn-decline:hover { background: #fff; color: var(--red); border-color: var(--red); }

/* ── TEAM MANAGER ── */
.manager-member {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
  transition: background .2s;
}
.manager-member:hover { background: var(--bg); }
.manager-member-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.manager-member-info { flex: 1; }
.manager-member-name { font-size: .88rem; font-weight: 600; }
.manager-member-email { font-size: .72rem; color: var(--text-light); }
.manager-member-role-label { font-size: .68rem; color: var(--text-light); }
.manager-member-actions { display: flex; align-items: center; gap: 6px; }
.manager-role-select {
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px;
  font-size: .75rem; background: #fff; cursor: pointer;
}
.manager-remove-btn {
  background: none; border: none; color: var(--red); cursor: pointer;
  font-size: 1rem; padding: 4px; opacity: .5; transition: opacity .2s;
}
.manager-remove-btn:hover { opacity: 1; }
.manager-pending-badge {
  font-size: .6rem; background: var(--yellow); color: #333;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}
.manager-meta-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.manager-meta-color {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  cursor: pointer; flex-shrink: 0;
}
.manager-meta-code {
  font-size: .8rem; font-weight: 700; width: 50px; padding: 4px 6px;
  border: 1px solid var(--border); border-radius: 6px; text-align: center;
  text-transform: uppercase;
}
.manager-meta-name {
  flex: 1; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: .82rem;
}
.tab-btn.active { background: var(--accent); color: #fff; }

/* ── APP LAYOUT ── */
.app { display: flex; height: 100vh; }
.hidden { display: none !important; }

/* ── SIDEBAR ── */
.sidebar {
  width: 270px; background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto;
}
.sidebar-header { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-header h1 { font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.sidebar-header h1 .logo { width: 30px; height: 30px; background: linear-gradient(135deg, #e17055, #fdcb6e); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.sidebar-header .subtitle { font-size: .7rem; opacity: .5; margin-top: 4px; }
.sidebar-section { padding: 14px 20px 6px; font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; opacity: .5; }
.sidebar-item { padding: 9px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: .85rem; border-left: 3px solid transparent; transition: background .2s; }
.sidebar-item:hover { background: rgba(255,255,255,.05); }
.sidebar-item.active { background: rgba(108,92,231,.2); border-left-color: var(--accent); color: #fff; }
.sidebar-item .icon { font-size: 1rem; width: 20px; text-align: center; }

.team-member { padding: 5px 20px 5px 34px; font-size: .8rem; display: flex; align-items: center; gap: 8px; cursor: pointer; border-left: 3px solid transparent; transition: all .2s; }
.team-member:hover { background: rgba(255,255,255,.06); }
.team-member.person-active { background: rgba(108,92,231,.25); border-left-color: var(--accent-light); }
.team-member .person-count { font-size: .6rem; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 8px; margin-left: 2px; display: none; }
.team-member.person-active .person-count { display: inline; }
.member-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.member-role { font-size: .65rem; opacity: .5; margin-left: auto; }
.online-indicator { width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-left: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.3 } }

.sidebar-user {
  margin-top: auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sidebar-user-info { flex: 1; }
.sidebar-user-name { font-size: .82rem; color: #fff; }
.sidebar-user-email { font-size: .65rem; opacity: .5; }
.sidebar-logout { background: none; border: none; color: var(--sidebar-text); cursor: pointer; font-size: 1rem; opacity: .5; padding: 4px; }
.sidebar-logout:hover { opacity: 1; }

/* ── META SIDEBAR ── */
.meta-sidebar-item { padding: 7px 20px 7px 28px; font-size: .78rem; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.meta-sidebar-item:hover { background: rgba(255,255,255,.04); }
.meta-badge { font-size: .6rem; padding: 1px 6px; border-radius: 4px; font-weight: 600; flex-shrink: 0; }
.meta-progress-mini { width: 40px; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-left: auto; overflow: hidden; }
.meta-progress-mini-fill { height: 100%; border-radius: 2px; transition: width .4s; }

/* ── MAIN ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 54px; background: var(--card-bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left h2 { font-size: 1.05rem; }
.period-tabs { display: flex; gap: 3px; background: var(--bg); border-radius: 8px; padding: 3px; }
.period-tab { padding: 4px 12px; border-radius: 6px; font-size: .78rem; cursor: pointer; border: none; background: transparent; color: var(--text-light); transition: all .2s; }
.period-tab.active { background: var(--card-bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.btn { padding: 6px 14px; border-radius: 8px; border: none; font-size: .8rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5b4cdb; }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--border); }

/* ── METAS BAR ── */
.metas-bar { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 10px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.metas-bar-label { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-right: 4px; }
.meta-chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 20px; font-size: .75rem; font-weight: 500; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; position: relative;
}
.meta-chip:hover { transform: translateY(-1px); }
.meta-chip.filter-active { border-color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.meta-chip .meta-pct { font-weight: 700; margin-left: 2px; }
.meta-chip .check-complete {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .7rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,184,148,.4); animation: popIn .4s ease;
}
.meta-chip.completed .check-complete { display: flex; }
.meta-chip.completed { opacity: .7; }
@keyframes popIn { 0% { transform: scale(0) } 50% { transform: scale(1.3) } 100% { transform: scale(1) } }

/* ── BOARD ── */
.board-container { flex: 1; display: flex; overflow-x: auto; padding: 16px; gap: 14px; }
.column { min-width: 280px; max-width: 310px; flex-shrink: 0; display: flex; flex-direction: column; }
.column-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; }
.column-title { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.column-count { background: var(--bg); color: var(--text-light); font-size: .68rem; padding: 2px 7px; border-radius: 10px; }
.column-cards { flex: 1; background: rgba(0,0,0,.02); border-radius: 12px; padding: 7px; display: flex; flex-direction: column; gap: 7px; min-height: 120px; transition: background .2s; }
.column-cards.drag-over { background: rgba(108,92,231,.06); outline: 2px dashed var(--accent-light); }

/* ── CARDS ── */
.card {
  background: var(--card-bg); border-radius: 10px; padding: 12px; cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); border-left: 4px solid var(--border);
  transition: box-shadow .2s, transform .15s, opacity .3s; position: relative;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
.card.dragging { opacity: .5; transform: rotate(2deg); }
.card.status-green { border-left-color: var(--green-border); background: var(--green-bg); }
.card.status-yellow { border-left-color: var(--yellow-border); background: var(--yellow-bg); }
.card.status-red { border-left-color: var(--red-border); background: var(--red-bg); }
.card.filtered-out { opacity: .15; transform: scale(.97); pointer-events: none; }

.card-metas { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.card-meta-tag { font-size: .58rem; padding: 1px 6px; border-radius: 3px; font-weight: 600; color: #fff; }
.card-title { font-size: .84rem; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.tag { font-size: .66rem; padding: 2px 7px; border-radius: 4px; color: #fff; font-weight: 500; }
.card-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--text-light); }
.card-deadline { display: flex; align-items: center; gap: 4px; }
.card-actions { display: flex; align-items: center; gap: 5px; }
.card-action-btn { background: none; border: none; cursor: pointer; font-size: .85rem; padding: 2px; opacity: .5; transition: opacity .2s; }
.card-action-btn:hover { opacity: 1; }
.card-link { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--accent); margin-top: 5px; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-review { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.06); display: flex; align-items: center; gap: 8px; }
.review-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.review-pct { font-size: .7rem; font-weight: 600; color: var(--green); }

/* ── NOTEPAD ── */
.notepad-panel { position: fixed; top: 0; right: -480px; width: 480px; height: 100vh; background: var(--card-bg); box-shadow: -4px 0 24px rgba(0,0,0,.12); z-index: 100; display: flex; flex-direction: column; transition: right .3s ease; }
.notepad-panel.open { right: 0; }
.notepad-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.notepad-header h3 { font-size: .95rem; }
.notepad-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.notepad-textarea { width: 100%; min-height: 200px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: 'Courier New', monospace; font-size: .82rem; line-height: 1.8; resize: vertical; background: #fffef5; }
.notepad-textarea:focus { outline: none; border-color: var(--accent); }
.notepad-instructions { font-size: .75rem; color: var(--text-light); background: var(--bg); padding: 10px; border-radius: 8px; line-height: 1.5; }
.notepad-preview { margin-top: 6px; }
.preview-card { padding: 8px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; font-size: .8rem; flex-wrap: wrap; }

/* ── POMODORO ── */
.pomodoro-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,.4); z-index: 200; display: none; align-items: center; justify-content: center; }
.pomodoro-overlay.open { display: flex; }
.pomodoro-modal { background: var(--card-bg); border-radius: 16px; width: 400px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.2); position: relative; }
.pomo-header { padding: 18px 22px; background: var(--accent); color: #fff; }
.pomo-header h3 { font-size: .95rem; margin-bottom: 3px; }
.pomo-header p { font-size: .78rem; opacity: .8; }
.pomo-timer { text-align: center; padding: 28px; }
.pomo-time { font-size: 3.5rem; font-weight: 200; font-variant-numeric: tabular-nums; }
.pomo-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pomo-btn { padding: 9px 24px; border-radius: 24px; border: none; cursor: pointer; font-size: .82rem; font-weight: 500; }
.pomo-btn-start { background: var(--accent); color: #fff; }
.pomo-btn-pause { background: var(--bg); color: var(--text); }
.pomo-teammates { padding: 14px 22px; border-top: 1px solid var(--border); }
.pomo-teammates h4 { font-size: .72rem; color: var(--text-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.pomo-mate { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .82rem; }
.pomo-mate-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 600; }
.pomo-mate-info { flex: 1; }
.pomo-mate-task { font-size: .68rem; color: var(--text-light); }
.pomo-mate-timer { font-size: .78rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.pomo-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ── DETAIL MODAL ── */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,.4); z-index: 150; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card-bg); border-radius: 16px; width: 540px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 18px 22px; }
.modal-field { margin-bottom: 14px; }
.modal-label { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.modal-input, .modal-select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: .82rem; }
.modal-comments { margin-top: 14px; }
.comment { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .6rem; font-weight: 600; flex-shrink: 0; }
.comment-content { flex: 1; }
.comment-author { font-size: .75rem; font-weight: 600; }
.comment-text { font-size: .8rem; color: var(--text-light); margin-top: 2px; }
.comment-approval { font-size: .72rem; color: var(--green); font-weight: 600; margin-top: 3px; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); padding: 4px; }
.close-btn:hover { color: var(--text); }

/* ── CHAT ── */
.chat-fab { position: fixed; bottom: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 1.2rem; box-shadow: 0 4px 16px rgba(108,92,231,.4); z-index: 89; }
.chat-fab:hover { transform: scale(1.1); }
.chat-panel { position: fixed; bottom: 18px; right: 18px; width: 340px; height: 420px; background: var(--card-bg); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.15); z-index: 90; display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-header { padding: 12px 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.chat-header h4 { font-size: .85rem; }
.chat-close { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.chat-messages { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 80%; padding: 7px 11px; border-radius: 12px; font-size: .8rem; line-height: 1.4; }
.chat-msg.incoming { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.outgoing { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg-name { font-size: .68rem; font-weight: 600; margin-bottom: 2px; }
.chat-input-area { padding: 8px 12px; border-top: 1px solid var(--border); display: flex; gap: 6px; }
.chat-input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 18px; font-size: .8rem; outline: none; }
.chat-input:focus { border-color: var(--accent); }
.chat-send { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: .9rem; }

/* ── BANNER ── */
.meta-complete-banner {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: linear-gradient(135deg, var(--green), #00cec9);
  color: #fff; padding: 14px 28px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,184,148,.4); z-index: 300;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; gap: 10px;
}
.meta-complete-banner.show { transform: translateX(-50%) translateY(0); }

/* ── LOADING ── */
.loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg); z-index: 999; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 16px;
}
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CREATE TEAM MODAL ── */
.create-team-modal { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.4); z-index:200; display:none; align-items:center; justify-content:center; }
.create-team-modal.open { display:flex; }
.create-team-form { background:#fff; border-radius:16px; padding:32px; width:440px; max-width:90%; }
.create-team-form h3 { margin-bottom:20px; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:.78rem; color:var(--text-light); margin-bottom:4px; font-weight:500; }
.form-group input, .form-group textarea { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-size:.85rem; }
.form-group textarea { min-height:80px; resize:vertical; font-family:inherit; }
.form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -270px; z-index: 100; height: 100vh; transition: left .3s; }
  .sidebar.mobile-open { left: 0; }
  .mobile-menu-btn { display: block !important; }
  .board-container { padding: 10px; gap: 10px; }
  .column { min-width: 260px; }
  .topbar { padding: 0 12px; }
  .topbar-left h2 { font-size: .9rem; }
  .chat-panel { width: 300px; height: 380px; }
  .notepad-panel { width: 100%; }
  .login-card { padding: 32px 24px; }
  .metas-bar { padding: 8px 12px; gap: 6px; }
  .meta-chip { font-size: .68rem; padding: 4px 8px; }
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }
</style>
