@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Fundo geral claro */
  --bg:          #f4f6f7;
  --bg-card:     #ffffff;
  --bg-hover:    #f0f2f3;
  --bg-input:    #f8fafb;
  --border:      #dde8ea;
  --border-dark: #c8d8db;

  /* Sidebar teal escura */
  --sidebar-bg:      #0f1923;
  --sidebar-top:     #1a5f6e;
  --sidebar-accent:  #2ab8c8;
  --sidebar-text:    rgba(255,255,255,0.75);
  --sidebar-muted:   rgba(255,255,255,0.35);
  --sidebar-active:  rgba(42,184,200,0.18);
  --sidebar-hover:   rgba(255,255,255,0.06);

  /* Brand */
  --brand:      #6366f1;
  --brand-dark: #4f46e5;
  --teal:       #2ab8c8;
  --teal-dark:  #1a5f6e;

  /* Texto */
  --tx-1: #0f1923;
  --tx-2: #4a6572;
  --tx-3: #8aa3ab;
  --tx-4: #b8cdd2;

  /* Status */
  --green:  #10b981;
  --yellow: #f59e0b;
  --orange: #f97316;
  --red:    #ef4444;
  --violet: #8b5cf6;
  --pink:   #ec4899;
  --blue:   #3b82f6;

  /* Layout */
  --sidebar-w:  240px;
  --header-h:   56px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(15,25,35,0.08), 0 1px 2px rgba(15,25,35,0.04);
  --shadow-md:  0 4px 16px rgba(15,25,35,0.10), 0 2px 4px rgba(15,25,35,0.06);
  --shadow-lg:  0 8px 32px rgba(15,25,35,0.14);
  --font: 'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--tx-1); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
svg { display: block; flex-shrink: 0; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 99px; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, #1a5f6e 0%, #0f1923 100%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

/* Logo */
.sidebar-logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sidebar-logo-mark {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff; font-weight: 800;
  box-shadow: 0 2px 8px rgba(42,184,200,0.4);
}
.sidebar-logo-text { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.sidebar-logo-text span { color: var(--teal); }

/* Nav sections */
.sidebar-section { padding: 20px 10px 4px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sidebar-muted);
  padding: 0 8px 8px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; position: relative;
}
.sidebar-nav-item:hover  { background: var(--sidebar-hover); color: #fff; }
.sidebar-nav-item.active { background: var(--sidebar-active); color: var(--teal); }
.sidebar-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--teal); border-radius: 0 2px 2px 0;
}
.nav-badge {
  margin-left: auto; background: var(--teal);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px; min-width: 18px; text-align: center;
}

/* Boards list */
.sidebar-boards-wrap {
  flex: 1; overflow-y: auto; padding: 4px 10px 8px;
}
.sidebar-boards-wrap::-webkit-scrollbar { width: 3px; }
.sidebar-boards-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar-board-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: 12.5px;
  cursor: pointer; transition: all 0.15s;
}
.sidebar-board-item:hover  { background: var(--sidebar-hover); color: #fff; }
.sidebar-board-item.active { background: var(--sidebar-active); color: var(--teal); }
.board-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.board-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-item-client { font-size: 11px; color: var(--sidebar-muted); }

/* User footer */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.user-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.15s;
}
.user-pill:hover { background: var(--sidebar-hover); }
.user-avatar-wrap { position: relative; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); border: 2px solid #0f1923;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10.5px; color: var(--sidebar-muted); }
.user-logout { color: var(--sidebar-muted); transition: color 0.15s; padding: 4px; }
.user-logout:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   MAIN / TOPBAR
══════════════════════════════════════════════════════════ */
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
  flex-shrink: 0; z-index: 10;
}
.topbar-search {
  flex: 1; max-width: 320px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 7px 12px;
  font-size: 13px; color: var(--tx-3); cursor: text;
  transition: border-color 0.15s;
}
.topbar-search:hover { border-color: var(--border-dark); }
.topbar-search input { border: none; background: none; outline: none; flex: 1; font-size: 13px; color: var(--tx-1); }
.topbar-search input::placeholder { color: var(--tx-3); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Notification bell */
.notif-btn {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--tx-2);
  transition: all 0.15s; cursor: pointer;
}
.notif-btn:hover { background: var(--bg-hover); color: var(--tx-1); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
}
.topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  transition: opacity 0.15s;
}
.topbar-avatar:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   PAGES
══════════════════════════════════════════════════════════ */
.page { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.page.active { display: flex; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.dashboard-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--tx-1); }
.page-subtitle { font-size: 13px; color: var(--tx-3); margin-top: 3px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-value { font-size: 26px; font-weight: 700; color: var(--tx-1); line-height: 1; }
.stat-label { font-size: 12px; color: var(--tx-3); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--tx-2); text-transform: uppercase; letter-spacing: 0.06em; }
.section-link  { font-size: 12px; color: var(--teal); font-weight: 500; cursor: pointer; }
.section-link:hover { text-decoration: underline; }

/* Board cards grid */
.boards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; margin-bottom: 28px; }
.board-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: all 0.18s; box-shadow: var(--shadow-sm);
}
.board-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-dark); }
.board-card-top {
  height: 6px;
}
.board-card-body { padding: 14px 16px; }
.board-card-name { font-size: 13.5px; font-weight: 600; color: var(--tx-1); margin-bottom: 4px; }
.board-card-client {
  font-size: 11.5px; color: var(--tx-3);
  display: flex; align-items: center; gap: 5px; margin-bottom: 12px;
}
.board-card-footer { display: flex; align-items: center; justify-content: space-between; }
.board-card-stat { font-size: 11.5px; color: var(--tx-3); display: flex; align-items: center; gap: 4px; }
.board-card-avatars { display: flex; }
.board-card-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; margin-left: -5px;
}
.board-card-avatar:first-child { margin-left: 0; }

/* Activity feed */
.activity-feed { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.activity-feed-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-hover); }
.activity-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 12.5px; color: var(--tx-2); line-height: 1.5; }
.activity-text strong { color: var(--tx-1); font-weight: 600; }
.activity-time { font-size: 11px; color: var(--tx-4); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   KANBAN
══════════════════════════════════════════════════════════ */
.kanban-topbar {
  height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
  flex-shrink: 0;
}
.kanban-board-name { font-size: 15px; font-weight: 700; color: var(--tx-1); }
.kanban-client-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 10px 3px 6px;
  font-size: 11.5px; color: var(--tx-2); font-weight: 500;
}
.kanban-client-dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-scroll {
  flex: 1; overflow-x: auto; overflow-y: hidden;
  display: flex; padding: 20px; gap: 14px; align-items: flex-start;
}
.kanban-scroll::-webkit-scrollbar { height: 5px; }

/* List column */
.kanban-list {
  width: 272px; min-width: 272px; flex-shrink: 0;
  background: #eef1f3;
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) * 2 - 40px);
}
.kanban-list-header {
  padding: 12px 12px 10px;
  display: flex; align-items: center; gap: 7px;
}
.list-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.list-name { font-size: 13px; font-weight: 600; color: var(--tx-1); flex: 1; }
.list-count {
  min-width: 20px; height: 20px; padding: 0 5px;
  background: rgba(0,0,0,0.08); border-radius: 99px;
  font-size: 11px; font-weight: 600; color: var(--tx-2);
  display: flex; align-items: center; justify-content: center;
}
.list-menu-btn { color: var(--tx-3); padding: 2px; border-radius: 4px; }
.list-menu-btn:hover { background: rgba(0,0,0,0.08); color: var(--tx-1); }

.kanban-cards { flex: 1; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }

/* Card */
.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.kanban-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.kanban-card.is-pinned { border-top: 2px solid var(--teal); }
.kanban-card.dragging { opacity: 0.45; cursor: grabbing; }

/* Card labels */
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.card-label {
  padding: 2px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600;
}

.card-title { font-size: 13px; font-weight: 500; color: var(--tx-1); line-height: 1.45; margin-bottom: 10px; }

/* Card meta row */
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.card-priority {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 99px;
}
.priority-none   { background: #f1f5f7; color: var(--tx-3); }
.priority-low    { background: #d1fae5; color: #059669; }
.priority-medium { background: #fef3c7; color: #d97706; }
.priority-high   { background: #ffedd5; color: #ea580c; }
.priority-urgent { background: #fee2e2; color: #dc2626; }

.card-date {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 2px 7px;
  border-radius: 99px; background: #f1f5f7; color: var(--tx-3);
}
.card-date.overdue { background: #fee2e2; color: #dc2626; }
.card-date.today   { background: #fef3c7; color: #d97706; }

.card-platform {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px;
  border-radius: 99px; background: #ede9fe; color: #7c3aed;
}

/* Card footer */
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-progress { display: flex; align-items: center; gap: 6px; }
.progress-track { width: 52px; height: 4px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--green); border-radius: 99px; transition: width 0.3s; }
.progress-text  { font-size: 10.5px; color: var(--tx-3); font-weight: 500; }
.card-assignees { display: flex; }
.card-assignee {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; margin-left: -5px;
}
.card-assignee:first-child { margin-left: 0; }

/* Add card */
.add-card-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--tx-3); cursor: pointer;
  transition: all 0.15s; margin: 4px 8px 8px;
}
.add-card-btn:hover { background: rgba(0,0,0,0.06); color: var(--tx-1); }

.add-card-form { padding: 4px 8px 8px; }
.add-card-textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 13px; color: var(--tx-1); outline: none;
  resize: none; line-height: 1.4; font-family: var(--font);
  box-shadow: 0 0 0 3px rgba(42,184,200,0.1);
}
.add-card-actions { display: flex; gap: 6px; margin-top: 6px; }

/* Add list */
.kanban-add-list {
  width: 260px; min-width: 260px; flex-shrink: 0;
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: var(--tx-3);
  cursor: pointer; padding: 20px; height: fit-content;
  align-self: flex-start; transition: all 0.15s;
}
.kanban-add-list:hover { border-color: var(--teal); color: var(--teal); background: rgba(42,184,200,0.04); }

/* Drop highlight */
.kanban-list.drag-over .kanban-cards { background: rgba(42,184,200,0.06); border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; white-space: nowrap; font-family: var(--font);
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 3px rgba(42,184,200,0.3); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--tx-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--tx-1); }
.btn-outline { border: 1px solid var(--border); color: var(--tx-2); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); color: var(--tx-2); }
.btn-icon:hover { background: var(--bg-hover); color: var(--tx-1); }

/* ══════════════════════════════════════════════════════════
   MODAIS
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,25,35,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; box-shadow: var(--shadow-lg);
  transform: translateY(8px); transition: transform 0.2s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--tx-1); flex: 1; line-height: 1.3; }
.modal-close { color: var(--tx-3); padding: 4px; border-radius: var(--radius-sm); transition: all 0.12s; }
.modal-close:hover { background: var(--bg-hover); color: var(--tx-1); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Card modal layout */
.card-modal-layout { display: grid; grid-template-columns: 1fr 200px; gap: 24px; }
.card-modal-main { display: flex; flex-direction: column; gap: 18px; }
.card-modal-side { display: flex; flex-direction: column; gap: 8px; }
.card-modal-subtitle { font-size: 11px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }

/* Side action buttons */
.side-action {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; color: var(--tx-2);
  cursor: pointer; transition: all 0.12s;
  border: 1px solid var(--border); background: var(--bg);
  width: 100%;
}
.side-action:hover { border-color: var(--teal); color: var(--teal); background: rgba(42,184,200,0.04); }
.side-action.danger:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--tx-2); }
.form-input {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13.5px; color: var(--tx-1); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
  font-family: var(--font);
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,184,200,0.12); }
.form-input::placeholder { color: var(--tx-4); }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }
select.form-input { cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ══════════════════════════════════════════════════════════
   CHECKLIST
══════════════════════════════════════════════════════════ */
.checklist-block { }
.checklist-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.checklist-title { font-size: 13px; font-weight: 600; color: var(--tx-1); flex: 1; }
.checklist-pct { font-size: 11px; color: var(--tx-3); font-weight: 500; }
.checklist-bar { height: 4px; background: #e5e7eb; border-radius: 99px; margin-bottom: 10px; overflow: hidden; }
.checklist-bar-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width 0.3s; }
.checklist-item { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; }
.checklist-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--teal); margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.checklist-item-text { font-size: 13px; color: var(--tx-2); line-height: 1.4; }
.checklist-item-text.done { text-decoration: line-through; color: var(--tx-4); }

/* ══════════════════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════════════════ */
.comment-item { display: flex; gap: 10px; padding: 8px 0; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-author { font-size: 12.5px; font-weight: 600; color: var(--tx-1); }
.comment-time { font-size: 11px; color: var(--tx-4); }
.comment-text { font-size: 13px; color: var(--tx-2); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   CLIENTS PAGE
══════════════════════════════════════════════════════════ */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; margin-top: 16px; }
.client-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.15s;
}
.client-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); transform: translateY(-1px); }
.client-avatar-lg {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.client-name { font-size: 14px; font-weight: 700; color: var(--tx-1); }
.client-company { font-size: 12px; color: var(--tx-3); margin-top: 1px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
}
.status-active   { background: #d1fae5; color: #059669; }
.status-prospect { background: #ede9fe; color: #7c3aed; }
.status-inactive { background: #f1f5f7; color: var(--tx-3); }

/* ══════════════════════════════════════════════════════════
   CALENDAR PAGE
══════════════════════════════════════════════════════════ */
.calendar-wrap { flex: 1; overflow-y: auto; padding: 20px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cal-day-header { background: #fff; padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }
.cal-day {
  background: #fff; min-height: 100px; padding: 8px;
  transition: background 0.12s; vertical-align: top;
}
.cal-day:hover { background: var(--bg-hover); }
.cal-day.other-month { background: #fafbfc; }
.cal-day.today { background: rgba(42,184,200,0.05); }
.cal-day-num {
  font-size: 12px; font-weight: 600; color: var(--tx-3);
  margin-bottom: 4px; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
}
.cal-day.today .cal-day-num { background: var(--teal); color: #fff; }
.cal-card {
  font-size: 11px; font-weight: 500; padding: 3px 6px;
  border-radius: 4px; margin-bottom: 3px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.12s;
}
.cal-card:hover { opacity: 0.8; }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--tx-1); min-width: 240px;
  box-shadow: var(--shadow-lg); animation: toastIn 0.25s ease;
  pointer-events: all;
}
.toast-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast.success .toast-icon { background: #d1fae5; color: var(--green); }
.toast.error   .toast-icon { background: #fee2e2; color: var(--red); }
.toast.info    .toast-icon { background: #ede9fe; color: var(--brand); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ══════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════ */
#login-page {
  display: none; position: fixed; inset: 0;
  background: linear-gradient(135deg, #0f1923 0%, #1a5f6e 50%, #0f1923 100%);
  align-items: center; justify-content: center; z-index: 300;
}
#login-page.active { display: flex; }
.login-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-mark {
  width: 52px; height: 52px; background: var(--teal);
  border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 16px rgba(42,184,200,0.4);
  margin-bottom: 14px;
}
.login-brand { font-size: 22px; font-weight: 800; color: var(--tx-1); }
.login-brand span { color: var(--teal); }
.login-tagline { font-size: 13px; color: var(--tx-3); margin-top: 4px; }
.login-title { font-size: 17px; font-weight: 700; color: var(--tx-1); margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-demo {
  margin-top: 16px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--tx-3); text-align: center;
}
.login-demo code { color: var(--teal); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   SEARCH DROPDOWN
══════════════════════════════════════════════════════════ */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  z-index: 100; overflow: hidden; display: none;
}
.search-dropdown.open { display: block; }
.search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background 0.12s;
  font-size: 13px; color: var(--tx-1);
}
.search-result:hover { background: var(--bg-hover); }
.search-result-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-result-meta { font-size: 11px; color: var(--tx-3); }

/* ══════════════════════════════════════════════════════════
   NOTIF DROPDOWN
══════════════════════════════════════════════════════════ */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  z-index: 100; overflow: hidden; display: none;
}
.notif-dropdown.open { display: block; }
.notif-header { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.notif-header-title { font-size: 13.5px; font-weight: 700; color: var(--tx-1); }
.notif-mark-all { font-size: 12px; color: var(--teal); cursor: pointer; font-weight: 500; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background 0.12s; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(42,184,200,0.04); }
.notif-item-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 5px; }
.notif-item-dot.read { background: transparent; }
.notif-item-text { font-size: 12.5px; color: var(--tx-2); line-height: 1.5; flex: 1; }
.notif-item-time { font-size: 11px; color: var(--tx-4); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   APPROVAL PAGE
══════════════════════════════════════════════════════════ */
.approval-page { flex: 1; overflow-y: auto; padding: 24px; }
.approval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; margin-top: 16px; }
.approval-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.approval-card-img { height: 140px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--tx-4); }
.approval-card-body { padding: 14px; }
.approval-card-title { font-size: 13.5px; font-weight: 600; color: var(--tx-1); margin-bottom: 8px; }
.approval-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.approval-card-actions { display: flex; gap: 8px; }
.btn-approve { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.btn-approve:hover { background: #a7f3d0; }
.btn-reject  { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.btn-reject:hover  { background: #fecaca; }

/* ══════════════════════════════════════════════════════════
   EMPTY / LOADING
══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--tx-3); }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 14px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(244,246,247,0.7); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { position: fixed; left:0; top:0; height:100%; transform: translateX(-100%); transition: transform 0.25s; z-index: 100; }
  .sidebar.open { transform: translateX(0); }
  .card-modal-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   CARD MODAL — TABS COMPLETO
══════════════════════════════════════════════════════════ */
.card-modal-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.card-tab {
  padding: 8px 14px; font-size: 12.5px; font-weight: 500; color: var(--tx-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap;
}
.card-tab:hover { color: var(--tx-1); }
.card-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Edição inline título */
.card-title-edit {
  font-size: 16px; font-weight: 700; color: var(--tx-1);
  border: none; outline: none; width: 100%; background: transparent;
  border-bottom: 2px solid transparent; padding: 2px 0; transition: border-color 0.15s;
  font-family: var(--font); line-height: 1.3;
}
.card-title-edit:focus { border-bottom-color: var(--teal); }

/* Time tracking */
.time-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px;
}
.time-entry:last-child { border-bottom: none; }
.time-badge {
  background: #dbeafe; color: #2563eb;
  padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700;
  font-family: monospace;
}

/* Assignees picker */
.assignee-picker { position: relative; }
.assignee-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.assignee-chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 8px 3px 4px; font-size: 12px;
}
.assignee-chip .remove { cursor: pointer; color: var(--tx-3); font-size: 14px; line-height: 1; }
.assignee-chip .remove:hover { color: var(--red); }
.user-select-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); max-height: 180px; overflow-y: auto; display: none;
}
.user-select-dropdown.open { display: block; }
.user-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; transition: background 0.1s;
}
.user-option:hover { background: var(--bg-hover); }

/* Attachment area */
.attachment-zone {
  border: 2px dashed var(--border-dark); border-radius: var(--radius-md);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all 0.15s; color: var(--tx-3); font-size: 13px;
}
.attachment-zone:hover { border-color: var(--teal); color: var(--teal); background: rgba(42,184,200,0.03); }
.attachment-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px; transition: background 0.1s;
}
.attachment-item:hover { background: var(--bg-hover); }
.attachment-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.attachment-name { font-size: 13px; font-weight: 500; color: var(--tx-1); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { font-size: 11px; color: var(--tx-3); }

/* Embed section */
.embed-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.embed-option {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.15s;
}
.embed-option:hover { border-color: var(--teal); background: rgba(42,184,200,0.03); }
.embed-option-icon { font-size: 22px; margin-bottom: 6px; }
.embed-option-name { font-size: 11.5px; font-weight: 600; color: var(--tx-2); }
.embed-frame { width: 100%; height: 340px; border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ══════════════════════════════════════════════════════════
   TEMPLATES MODAL
══════════════════════════════════════════════════════════ */
.templates-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.template-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; transition: all 0.15s;
}
.template-card:hover { border-color: var(--teal); background: rgba(42,184,200,0.03); }
.template-card.selected { border-color: var(--teal); background: rgba(42,184,200,0.06); }
.template-card-icon { font-size: 24px; margin-bottom: 8px; }
.template-card-name { font-size: 13.5px; font-weight: 600; color: var(--tx-1); margin-bottom: 4px; }
.template-card-desc { font-size: 12px; color: var(--tx-3); line-height: 1.4; }
.template-lists { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.template-list-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 99px;
  background: var(--bg); color: var(--tx-3); border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   SETTINGS PAGE
══════════════════════════════════════════════════════════ */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 0; flex: 1; overflow: hidden; }
.settings-nav { border-right: 1px solid var(--border); padding: 20px 12px; overflow-y: auto; }
.settings-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--tx-2);
  cursor: pointer; transition: all 0.15s; margin-bottom: 2px;
}
.settings-nav-item:hover  { background: var(--bg-hover); color: var(--tx-1); }
.settings-nav-item.active { background: rgba(42,184,200,0.1); color: var(--teal); }
.settings-content { overflow-y: auto; padding: 28px 32px; }
.settings-section { max-width: 600px; margin-bottom: 40px; }
.settings-section-title { font-size: 15px; font-weight: 700; color: var(--tx-1); margin-bottom: 4px; }
.settings-section-desc { font-size: 13px; color: var(--tx-3); margin-bottom: 20px; }

/* Members table */
.members-table { width: 100%; border-collapse: collapse; }
.members-table th { font-size: 11px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.members-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--tx-2); vertical-align: middle; }
.members-table tr:last-child td { border-bottom: none; }
.member-row:hover td { background: var(--bg-hover); }
.role-select { font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 6px; color: var(--tx-1); background: #fff; cursor: pointer; outline: none; }

/* Plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.plan-card {
  border: 2px solid var(--border); border-radius: var(--radius-md); padding: 18px;
  transition: all 0.15s; cursor: pointer;
}
.plan-card:hover { border-color: var(--teal); }
.plan-card.current { border-color: var(--teal); background: rgba(42,184,200,0.04); }
.plan-name { font-size: 14px; font-weight: 700; color: var(--tx-1); margin-bottom: 4px; }
.plan-price { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.plan-feature { font-size: 12px; color: var(--tx-2); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════════
   BRAND HUB
══════════════════════════════════════════════════════════ */
.brand-hub-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 24px; flex: 1; overflow: hidden; }
.brand-clients-list { overflow-y: auto; }
.brand-client-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.15s; margin-bottom: 4px; border: 1px solid transparent;
}
.brand-client-item:hover  { background: var(--bg-card); border-color: var(--border); }
.brand-client-item.active { background: var(--bg-card); border-color: var(--teal); }
.brand-content { overflow-y: auto; }
.brand-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.brand-section-title { font-size: 13px; font-weight: 700; color: var(--tx-1); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.color-palette { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch-big {
  width: 48px; height: 48px; border-radius: var(--radius-sm); cursor: pointer;
  border: 3px solid transparent; transition: all 0.15s; position: relative;
}
.color-swatch-big:hover { transform: scale(1.05); }
.font-preview { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; transition: all 0.15s; }
.font-preview.selected { border-color: var(--teal); background: rgba(42,184,200,0.05); }
.tone-chip {
  padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border); cursor: pointer; transition: all 0.15s;
}
.tone-chip.selected { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ══════════════════════════════════════════════════════════
   SHARE PAGE (board público)
══════════════════════════════════════════════════════════ */
.share-page { background: var(--bg); min-height: 100vh; padding: 24px; }
.share-header {
  background: #fff; border-radius: var(--radius-lg); padding: 20px 24px;
  margin-bottom: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
}
.share-stats { display: flex; gap: 20px; margin-left: auto; }
.share-stat { text-align: center; }
.share-stat-val { font-size: 20px; font-weight: 700; color: var(--tx-1); }
.share-stat-lbl { font-size: 11px; color: var(--tx-3); }

/* ══════════════════════════════════════════════════════════
   BRIEFING FORM PAGE
══════════════════════════════════════════════════════════ */
.briefing-page {
  min-height: 100vh; background: linear-gradient(135deg, #0f1923 0%, #1a5f6e 100%);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px;
}
.briefing-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 640px; box-shadow: var(--shadow-lg);
}
.briefing-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.briefing-progress { height: 4px; background: var(--border); border-radius: 99px; margin-bottom: 32px; overflow: hidden; }
.briefing-progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--brand)); border-radius: 99px; transition: width 0.4s ease; }
.briefing-step { display: none; }
.briefing-step.active { display: block; }
.briefing-step-title { font-size: 17px; font-weight: 700; color: var(--tx-1); margin-bottom: 6px; }
.briefing-step-desc { font-size: 13px; color: var(--tx-3); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════
   AUTOMAÇÕES (BUTLER)
══════════════════════════════════════════════════════════ */
.automation-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.automation-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow-sm);
}
.automation-card.inactive { opacity: 0.55; }
.automation-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.automation-body { flex: 1; }
.automation-name { font-size: 13.5px; font-weight: 600; color: var(--tx-1); margin-bottom: 3px; }
.automation-desc { font-size: 12.5px; color: var(--tx-3); line-height: 1.4; }
.automation-meta { display: flex; gap: 12px; margin-top: 8px; }
.automation-stat { font-size: 11px; color: var(--tx-3); display: flex; align-items: center; gap: 4px; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-dark); border-radius: 99px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 14px; height: 14px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Butler rule builder */
.rule-builder { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.rule-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rule-label { font-size: 13px; font-weight: 600; color: var(--tx-2); white-space: nowrap; }
.rule-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; color: var(--tx-1); background: #fff; cursor: pointer; outline: none; transition: border-color 0.15s; font-family: var(--font); }
.rule-select:focus { border-color: var(--teal); }

/* ══════════════════════════════════════════════════════════
   RELATÓRIO
══════════════════════════════════════════════════════════ */
.report-page { flex: 1; overflow-y: auto; padding: 24px; }
.report-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.report-table th { background: var(--bg); font-size: 11px; font-weight: 700; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.report-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--tx-2); }
.report-table tr:last-child td { border-bottom: none; }
.report-table tr:hover td { background: var(--bg-hover); }
.report-total td { font-weight: 700; color: var(--tx-1); background: var(--bg); border-top: 2px solid var(--border); }

/* Drag & drop lista */
.kanban-list.list-dragging { opacity: 0.4; cursor: grabbing; }
.kanban-list-ghost { border: 2px dashed var(--teal); background: rgba(42,184,200,0.05); border-radius: var(--radius-md); }
.list-drag-handle { cursor: grab; color: var(--tx-4); padding: 2px; }
.list-drag-handle:hover { color: var(--tx-2); }

/* Copy link button */
.copy-link-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--tx-2); cursor: pointer; transition: all 0.15s;
}
.copy-link-btn:hover { border-color: var(--teal); color: var(--teal); }
.copy-link-btn.copied { background: #d1fae5; border-color: var(--green); color: var(--green); }

@media print {
  .sidebar, .topbar, .topbar-right, .btn, .modal-overlay { display: none !important; }
  .report-page { padding: 0; }
  .report-table { box-shadow: none; }
}

/* Brand Hub melhorado */
.brand-client-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.15s; margin-bottom: 4px;
  border: 1px solid transparent;
}
.brand-client-item:hover  { background: var(--bg-card); border-color: var(--border); }
.brand-client-item.active { background: var(--bg-card); border-color: var(--teal); }
.brand-section {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.brand-section-title {
  font-size: 13.5px; font-weight: 700; color: var(--tx-1);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.font-preview {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  cursor: pointer; transition: all 0.15s; color: var(--tx-1);
}
.font-preview.selected { border-color: var(--teal); background: rgba(42,184,200,0.06); color: var(--teal); }
.tone-chip {
  padding: 5px 12px; border-radius: 99px; font-size: 12.5px;
  font-weight: 500; background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; color: var(--tx-2);
}
.tone-chip.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.card-tab {
  padding: 10px 16px; font-size: 12.5px; font-weight: 500; color: var(--tx-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.card-tab:hover { color: var(--tx-1); }
.card-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ══ Timeline / Gantt ══ */
#timeline-content { font-size: 13px; }
#timeline-content::-webkit-scrollbar { width: 6px; height: 6px; }

/* ══ Financeiro ══ */
#financial-content { display: flex; flex-direction: column; }

/* ══ Sort button nas listas ══ */
.list-sort-btn {
  color: var(--tx-3); padding: 2px; border-radius: 4px; cursor: pointer;
  transition: all .12s;
}
.list-sort-btn:hover { background: rgba(0,0,0,0.08); color: var(--tx-1); }

/* ══ Approval badge ══ */
.approval-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600;
}
.approval-pending  { background: #fef3c7; color: #d97706; }
.approval-approved { background: #d1fae5; color: #059669; }
.approval-rejected { background: #fee2e2; color: #dc2626; }

/* ══ Client portal ══ */
#client-portal-page { display: none; }
#client-portal-page.active { display: flex; }

/* ══ View buttons ══ */
.view-btn.active { background: var(--teal) !important; color: #fff !important; }
.view-btn { transition: all .15s; }

/* ══ List view ══ */
#list-view-content table { font-family: var(--font); }
#list-view-content tr:hover td { background: var(--bg-hover); }

/* ══ Workload ══ */
#workload-content { background: var(--bg); }

/* ══ Admin ══ */
#admin-content { background: #fff; }
