@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* =========================================================
   VARIÁVEIS
   ========================================================= */
:root {
  --blue:           #0044FF;
  --blue-hover:     #0033CC;
  --blue-light:     rgba(0, 68, 255, 0.10);
  --blue-lighter:   rgba(0, 68, 255, 0.05);
  --navy:           #050B2E;
  --navy-mid:       #0D1545;

  --white:          #FFFFFF;
  --bg:             #F1F4F9;
  --border:         #DDE3EE;

  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;

  --alta:     #EF4444;
  --media:    #F59E0B;
  --baixa:    #10B981;
  --urgente:  #DC143C;

  --col-triagem:    #7C3AED;
  --col-pendente:   #D97706;
  --col-andamento:  #0044FF;
  --col-concluido:  #059669;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 1px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 8px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --sidebar-width:     240px;
  --sidebar-collapsed: 60px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 14px rgba(0, 68, 255, 0.30); }

.btn-secondary {
  background: var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { background: #cdd4e3; }

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: var(--alta);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--blue-lighter); color: var(--blue); }

/* =========================================================
   LOGIN PAGE
   ========================================================= */
body.login-page {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Sharp tech grid pattern — replaces soft blobs */
body.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 68, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 68, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

body.login-page::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,68,255,0.18) 40%, rgba(0,68,255,0.18) 60%, transparent);
  pointer-events: none;
  opacity: 0.4;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(221, 227, 238, 0.8);
}

.login-logo {
  display: block;
  margin: 0 auto 36px;
  height: 40px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* RICH TEXT EDITOR — descrição da tarefa */
.rt-editor-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: visible;
}
.rt-editor-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: relative;
  flex-wrap: wrap;
}
.form-group select.rt-style {
  width: auto;
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 22px 4px 8px;
  font-size: 12px;
  background: var(--white);
  cursor: pointer;
  margin-right: 4px;
  color: var(--text);
  height: auto;
}
.rt-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.rt-btn:hover { background: rgba(0,0,0,0.06); }
.rt-btn b, .rt-btn i, .rt-btn s { font-style: inherit; }
.rt-btn b { font-weight: 800; }
.rt-divider {
  width: 1px; height: 18px;
  background: var(--border);
  margin: 0 4px;
  display: inline-block;
}
.rt-link-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 8px;
  z-index: 60;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-link-popover label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rt-link-popover input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.rt-link-popover input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.rt-link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}
.rt-link-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  line-height: 1;
}
.rt-link-btn:not(.rt-link-btn-primary):hover { background: var(--bg); }
.rt-link-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.rt-link-btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.rt-editor {
  min-height: 110px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  outline: none;
  font-family: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.rt-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}
.rt-editor h1 { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.rt-editor h2 { font-size: 17px; font-weight: 700; margin: 8px 0 4px; }
.rt-editor h3 { font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.rt-editor p  { margin: 0 0 6px; }
.rt-editor ul, .rt-editor ol { padding-left: 22px; margin: 4px 0; }
.rt-editor li { margin: 2px 0; }
.rt-editor a {
  color: var(--blue);
  text-decoration: underline;
}
.rt-editor strong, .rt-editor b { font-weight: 700; }
.rt-editor em, .rt-editor i { font-style: italic; }
.rt-editor s, .rt-editor strike { text-decoration: line-through; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.login-btn:hover { background: var(--blue-hover); box-shadow: 0 4px 16px rgba(0, 68, 255, 0.30); }
.login-btn:active { transform: scale(0.98); }

.login-error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 3px solid var(--alta);
  border-radius: var(--radius-sm);
  color: var(--alta);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.login-error.visible { display: block; }

/* View change password */
.change-pw-info {
  background: var(--blue-lighter);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.change-pw-info strong { color: var(--blue); }

/* =========================================================
   APP LAYOUT
   ========================================================= */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(.4,0,.2,1),
              min-width 0.25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.sidebar:hover {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
}

/* Logo */
.sidebar-top {
  padding: 22px 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.sidebar-logo {
  height: 28px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease 0.05s, max-width 0.25s ease;
  white-space: nowrap;
}
.sidebar:hover .sidebar-logo {
  opacity: 1;
  max-width: 200px;
}

/* Símbolo mostrado quando recolhido */
.sidebar-icon-logo {
  width: 28px; height: 28px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.15s ease, max-width 0.25s ease;
  max-width: 28px;
  overflow: hidden;
  filter: brightness(0) invert(1);
}
.sidebar:hover .sidebar-icon-logo {
  opacity: 0;
  max-width: 0;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  overflow: hidden;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 10px;
  margin-bottom: 8px;
  margin-top: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}
.sidebar:hover .sidebar-label {
  opacity: 1;
  max-height: 24px;
}

/* ── Admin flyout ──────────────────────────────────────── */
.admin-flyout {
  position: fixed;
  z-index: 9999;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  /* left acompanha a sidebar via CSS — sem JS.
     Usa a mesma curva/duração da sidebar para perfeita sincronia. */
  left: calc(var(--sidebar-collapsed) + 6px);
  transition: opacity 0.15s ease, transform 0.15s ease,
              left 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
/* Flyout desloca para a posição expandida quando sidebar está aberta */
body:has(.sidebar:hover) .admin-flyout,
body:has(.sidebar.admin-open) .admin-flyout {
  left: calc(var(--sidebar-width) + 6px);
}
.admin-flyout.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.admin-flyout-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.3);
  padding: 4px 10px 6px;
}
.admin-flyout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.admin-flyout-item:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.admin-flyout-item.active { background: rgba(0,68,255,0.35);    color: #fff; }
.admin-flyout-item svg    { flex-shrink: 0; opacity: 0.85; }

/* Links */
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, padding 0.25s, justify-content 0s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar:hover .sidebar-link {
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
}
.sidebar-link:hover  { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-link.active { background: var(--blue); color: var(--white); }
.sidebar-link svg    { opacity: 0.8; flex-shrink: 0; }
.sidebar-link.active svg { opacity: 1; }

/* Text inside links */
.nav-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease 0.05s, max-width 0.25s ease;
  display: inline-block;
}
.sidebar:hover .nav-text {
  opacity: 1;
  max-width: 160px;
}

/* Bottom */
.sidebar-bottom {
  padding: 12px 8px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  justify-content: center;
  overflow: hidden;
}
.sidebar:hover .user-info { justify-content: flex-start; }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-details {
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.18s ease 0.05s, max-width 0.25s ease;
  white-space: nowrap;
}
.sidebar:hover .user-details {
  opacity: 1;
  max-width: 160px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, gap 0.25s, justify-content 0s, padding 0.25s;
}
.sidebar:hover .logout-btn {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
}
.logout-btn:hover { background: rgba(239,68,68,0.15); color: #FF6B6B; }

/* ── Sidebar travada aberta enquanto o flyout Admin está ativo ─────────────
   Replica todos os efeitos de .sidebar:hover mas via classe JS,
   garantindo que a sidebar não recolha ao mover o mouse para o flyout.    */
.sidebar.admin-open                   { width: var(--sidebar-width); min-width: var(--sidebar-width); }
.sidebar.admin-open .sidebar-logo     { opacity: 1; max-width: 200px; }
.sidebar.admin-open .sidebar-icon-logo{ opacity: 0; max-width: 0; }
.sidebar.admin-open .sidebar-label    { opacity: 1; max-height: 24px; }
.sidebar.admin-open .sidebar-link     { justify-content: flex-start; gap: 10px; padding: 9px 12px; }
.sidebar.admin-open .nav-text         { opacity: 1; max-width: 160px; }
.sidebar.admin-open .user-info        { justify-content: flex-start; }
.sidebar.admin-open .user-details     { opacity: 1; max-width: 160px; }
.sidebar.admin-open .logout-btn       { justify-content: flex-start; gap: 8px; padding: 8px 12px; }
.sidebar.admin-open .notif-bell-wrap  { justify-content: flex-start; gap: 10px; padding: 9px 12px; margin: 0 0 2px; }
.sidebar.admin-open .notif-bell-label { opacity: 1; max-width: 160px; }

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.topbar-left h1 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.topbar-left p {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* KANBAN BOARD */
.board-container {
  flex: 1;
  overflow: auto;
  padding: 24px 28px;
  background-color: #F1F4F9;
  background-image: radial-gradient(circle, #DDE3EE 1px, transparent 1px);
  background-size: 24px 24px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-height: 100%;
}

/* COLUMN */
.kanban-column {
  min-width: 0;
  min-height: calc(100vh - 160px);
  background: var(--white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  overflow: hidden;
}

.kanban-column.drag-over {
  border-color: var(--blue);
  background: var(--blue-lighter);
}

.column-header {
  padding: 12px 14px 12px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--col-color, var(--blue));
}

.column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.column-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--col-color, var(--blue));
  flex-shrink: 0;
}

.column-count {
  background: var(--col-color, var(--blue));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  opacity: 0.9;
}

.column-add-btn {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.column-add-btn:hover { background: var(--blue-light); color: var(--blue); }

.cards-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

/* scrollbar slim */
.cards-container::-webkit-scrollbar { width: 4px; }
.cards-container::-webkit-scrollbar-track { background: transparent; }
.cards-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* CARD */
.kanban-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  user-select: none;
}

.kanban-card:hover {
  box-shadow: 0 2px 8px rgba(15,23,42,0.10);
  border-color: rgba(0, 68, 255, 0.3);
}

.kanban-card.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.kanban-card.priority-alta  { border-left-color: var(--alta); }
.kanban-card.priority-media { border-left-color: var(--media); }
.kanban-card.priority-baixa   { border-left-color: var(--baixa); }
.kanban-card.priority-urgente { border-left-color: var(--urgente); }

/* Cards na coluna Concluído ficam sempre verdes */
[data-column="concluido"] .kanban-card { border-left-color: var(--col-concluido) !important; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 6px;
}

.priority-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 3px;
}

.priority-badge.alta    { background: var(--alta);    color: #fff; border: none; }
.priority-badge.media   { background: var(--media);   color: #fff; border: none; }
.priority-badge.baixa   { background: var(--baixa);   color: #fff; border: none; }
.priority-badge.urgente { background: var(--urgente); color: #fff; border: none; font-weight: 700; }

.card-client {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-date.overdue {
  color: var(--white);
  background: var(--alta);
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
}
.card-date.due-today {
  color: var(--white);
  background: var(--media);
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
}
.card-date.on-time {
  color: var(--white);
  background: var(--baixa);
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
}

.card-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--blue-light);
  flex-shrink: 0;
}
.card-avatar-photo {
  background: transparent;
}
.card-avatars {
  display: inline-flex;
  align-items: center;
}
.card-avatar-stacked {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--white);
}
.card-avatar-stacked:first-child { margin-left: 0; }
.card-avatar-more {
  font-size: 10px;
  letter-spacing: -0.3px;
}

/* RESPONSÁVEIS — multi-select com chips no modal */
.responsibles-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  min-height: 44px;
}
.responsibles-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.responsibles-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}
.responsibles-chip-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid;
  overflow: hidden;
  flex-shrink: 0;
}
.responsibles-chip-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.responsibles-chip-name {
  white-space: nowrap;
  font-weight: 500;
}
.responsibles-chip-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 4px;
  border-radius: 50%;
}
.responsibles-chip-remove:hover { color: #DC2626; background: rgba(239,68,68,0.08); }

.responsibles-add-wrap { position: relative; }
.responsibles-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.responsibles-add:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }
.responsibles-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 50;
  padding: 4px;
}
.responsibles-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.responsibles-menu-item:hover { background: var(--bg); }
.responsibles-menu-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid;
  overflow: hidden;
  flex-shrink: 0;
}
.responsibles-menu-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.responsibles-menu-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* EMPTY STATE */
.empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  gap: 8px;
}

.empty-column svg { opacity: 0.3; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 46, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal,
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg); color: var(--text-primary); }

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-footer-right {
  display: flex;
  gap: 8px;
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  max-width: 320px;
  border-left: 3px solid var(--blue);
}

.toast.visible { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--baixa); }
.toast.error   { border-left-color: var(--alta); }
.toast.success::before { content: '✓  '; color: var(--baixa); }
.toast.error::before   { content: '✕  '; color: var(--alta); }

/* =========================================================
   SCROLLBAR global
   ========================================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #bbc5d8; }

/* =========================================================
   LOADING SPINNER
   ========================================================= */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-share {
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-share:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.btn-share.copied { border-color: #34C759; color: #34C759; background: rgba(52,199,89,0.07); }

/* =========================================================
   FILTROS
   ========================================================= */
.btn-filter {
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-filter:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.btn-filter.open  { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.btn-filter.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.filter-badge {
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  line-height: 1.6;
}

/* Painel */
.filter-panel-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  flex-shrink: 0;
}
.filter-panel-wrap.open { max-height: 520px; }

.filter-panel {
  padding: 14px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  min-width: 78px;
  flex-shrink: 0;
}

/* Chips */
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-chip {
  padding: 4px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.filter-chip.f-urgente:hover  { border-color: var(--urgente); color: var(--urgente); }
.filter-chip.f-alta:hover     { border-color: var(--alta);    color: var(--alta); }
.filter-chip.f-media:hover    { border-color: var(--media);   color: var(--media); }
.filter-chip.f-baixa:hover    { border-color: var(--baixa);   color: var(--baixa); }
.filter-chip.f-urgente.active { background: var(--urgente); border-color: var(--urgente); }
.filter-chip.f-alta.active    { background: var(--alta);    border-color: var(--alta); }
.filter-chip.f-media.active   { background: var(--media);   border-color: var(--media); }
.filter-chip.f-baixa.active   { background: var(--baixa);   border-color: var(--baixa); }

/* Row de selects */
.filter-row-selects { align-items: flex-end; gap: 16px; }

.filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-select-group select {
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-primary);
  font-family: inherit;
  min-width: 160px;
  transition: border-color 0.15s;
}
.filter-select-group select:focus { outline: none; border-color: var(--blue); }

.filter-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-date-range input[type="date"] {
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 12px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s;
}
.filter-date-range input[type="date"]:focus { outline: none; border-color: var(--blue); }

.filter-date-sep {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-clear-wrap { margin-left: auto; align-self: flex-end; }

.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.filter-clear-btn:hover { color: var(--alta); background: rgba(239,68,68,0.06); }
.filter-clear-btn.invisible { visibility: hidden; pointer-events: none; }

/* =========================================================
   BULK ACTION BAR
   ========================================================= */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  margin: 0 28px 8px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.bulk-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.10);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.bulk-btn:hover { background: rgba(255,255,255,0.18); color: var(--white); }

.bulk-btn-danger { color: #FF8A80; }
.bulk-btn-danger:hover { background: rgba(239,68,68,0.25); color: #FF6060; }

.bulk-btn-cancel { color: rgba(255,255,255,0.45); }
.bulk-btn-cancel:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); }

.bulk-dropdown { position: relative; }

.bulk-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 500;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px;
}

.bulk-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}
.bulk-menu-item:hover { background: var(--bg); }

.bulk-priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bulk-priority-dot.urgente { background: var(--urgente); }
.bulk-priority-dot.alta    { background: var(--alta); }
.bulk-priority-dot.media   { background: var(--media); }
.bulk-priority-dot.baixa   { background: var(--baixa); }

/* SELEÇÃO — COLUNA */
.col-check {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.15s;
  margin-right: 2px;
}
.col-check:hover,
.kanban-column:has(input:checked) .col-check { opacity: 1; }
.col-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--col-color, var(--blue));
}

/* SELEÇÃO — CARD */
.kanban-card { position: relative; }

.card-check {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.kanban-card:hover .card-check,
.kanban-card.selected .card-check {
  opacity: 1;
  pointer-events: all;
}
.card-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--blue);
}

.kanban-card.selected {
  border-color: var(--blue) !important;
  border-left-color: inherit !important;
  background: var(--blue-lighter);
}
/* preserva a borda da prioridade no lado esquerdo mesmo quando selecionado */
.kanban-card.selected.priority-urgente { border-left-color: var(--urgente) !important; }
.kanban-card.selected.priority-alta    { border-left-color: var(--alta)    !important; }
.kanban-card.selected.priority-media   { border-left-color: var(--media)   !important; }
.kanban-card.selected.priority-baixa   { border-left-color: var(--baixa)   !important; }
[data-column="concluido"] .kanban-card.selected { border-left-color: var(--col-concluido) !important; }

/* ── Card concluído — tudo verde ─────────────────────────── */
.kanban-card.completed {
  border-left-color: var(--col-concluido) !important;
}
.kanban-card.completed .priority-badge {
  background: rgba(5, 150, 105, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(5, 150, 105, 0.25) !important;
}
.kanban-card.completed .card-avatar {
  background: #059669 !important;
  color: #fff !important;
}
.kanban-card.completed .card-date {
  background: #059669 !important;
  color: #fff !important;
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
}

/* =========================================================
   RECORRÊNCIA — PAINEL PERSONALIZADO
   ========================================================= */
.custom-rec-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -6px;
}

.custom-rec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.custom-rec-row > span {
  white-space: nowrap;
  min-width: 80px;
  font-weight: 600;
  color: var(--text-primary);
}

.rec-interval-input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  text-align: center;
  color: var(--text-primary);
}
.rec-interval-input:focus { outline: none; border-color: var(--blue); }

.rec-days-toggles {
  display: flex;
  gap: 5px;
}

.rec-day-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-day-btn:hover { border-color: var(--blue); color: var(--blue); }
.rec-day-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.custom-rec-end .rec-end-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-end-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.rec-end-label input[type="radio"] { cursor: pointer; }

.rec-inline-input {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 12px;
  color: var(--text-primary);
}
.rec-inline-input:focus { outline: none; border-color: var(--blue); }

.rec-count-input { width: 52px; text-align: center; }

/* CARD — indicador de recorrência */
.card-recurrence {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 6px;
  opacity: 0.85;
}

/* =========================================================
   AI CHAT WIDGET
   ========================================================= */

/* Botão flutuante */
.ai-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(0,68,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
  z-index: 1000;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ai-fab:hover {
  background: var(--navy-mid);
  box-shadow: 0 6px 20px rgba(0,68,255,0.30);
  transform: translateY(-1px);
}
.ai-fab svg { flex-shrink: 0; }

/* Painel do chat */
.ai-panel {
  position: fixed;
  bottom: 86px;
  right: 28px;
  width: 380px;
  max-height: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .18s, transform .18s;
}
.ai-panel.ai-panel-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.92) translateY(12px);
}

/* Header */
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.ai-header-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-header-info { flex: 1; }
.ai-header-title { font-size: 13px; font-weight: 700; }
.ai-header-sub   { font-size: 11px; opacity: .6; margin-top: 1px; }
.ai-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.ai-close-btn:hover { color: #fff; }

/* Área de mensagens */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 380px;
  scroll-behavior: smooth;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Mensagem individual */
.ai-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
  animation: ai-msg-in .18s ease;
}
@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg.ai-msg-user  { align-self: flex-end; align-items: flex-end; }
.ai-msg.ai-msg-agent { align-self: flex-start; align-items: flex-start; }

.ai-bubble {
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg-user  .ai-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.ai-msg-agent .ai-bubble {
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}

/* Markdown dentro das bolhas do agente */
.ai-bubble strong { font-weight: 700; }
.ai-bubble em { font-style: italic; }
.ai-bubble ul, .ai-bubble ol { padding-left: 18px; margin: 6px 0; }
.ai-bubble li { margin: 2px 0; }
.ai-bubble p  { margin: 0 0 6px; }
.ai-bubble p:last-child { margin-bottom: 0; }

/* Typing indicator */
.ai-typing .ai-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
}
.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: ai-bounce .9s infinite;
}
.ai-typing-dot:nth-child(2) { animation-delay: .15s; }
.ai-typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Sugestões iniciais */
.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px 12px;
}
.ai-suggestion-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ai-suggestion-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s, color .15s;
}
.ai-suggestion-btn:hover {
  background: var(--blue-lighter);
  border-color: rgba(0,68,255,0.25);
  color: var(--blue);
}

/* Input */
.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.ai-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  resize: none;
  max-height: 80px;
  outline: none;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color .15s;
}
.ai-input:focus { border-color: var(--blue); }
.ai-input::placeholder { color: var(--text-secondary); }
.ai-send-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  align-self: flex-end;
  transition: background .15s, transform .1s;
}
.ai-send-btn:hover   { background: var(--blue-hover); }
.ai-send-btn:active  { transform: scale(.94); }
.ai-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* =========================================================
   UTILITIES
   ========================================================= */
.hidden { display: none !important; }

/* ── Checklist de clientes ── */
.client-checklist {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border-radius: var(--radius-md);
  padding: 10px 12px; margin-bottom: 4px;
  max-height: 180px; overflow-y: auto;
}
.client-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 13px; font-weight: 500;
  color: var(--text-primary); cursor: pointer;
}
.client-check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.client-check-item.done { text-decoration: line-through; color: var(--text-secondary); }

/* ── Badge "Todos os Clientes" no card ── */
.card-all-clients {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--blue);
  margin-top: 4px;
}
.card-all-clients svg { flex-shrink: 0; }

/* ==========================================================
   REDESIGN v2 — Sidebar gradiente (mantém hover-expand original)
   ========================================================== */
.user-avatar { background: linear-gradient(135deg, var(--blue), #7C3AED); }

/* ==========================================================
   REDESIGN v2 — Coluna
   ========================================================== */
.column-dot { border-radius: 3px; width: 8px; height: 8px; }

.column-count {
  background: var(--col-color, var(--blue));
  color: #fff;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 20px;
  opacity: 0.9;
}

/* ==========================================================
   REDESIGN v2 — Card hover com elevação
   ========================================================== */
.kanban-card {
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
}
.kanban-card:hover {
  box-shadow: 0 4px 20px rgba(5,11,46,.10);
  transform: translateY(-1px);
  border-color: rgba(0,68,255,.28);
}
.kanban-card:active { transform: translateY(0); }

/* client tag com ícone */
.card-client {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-client svg { flex-shrink: 0; opacity: 0.7; }

/* ==========================================================
   REDESIGN v2 — Stats row
   ========================================================== */
.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}
.stats-row::-webkit-scrollbar { height: 0; }

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-pill {
  width: 7px; height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.stat-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 14px;
  text-align: right;
}
.stat-chip-alert {
  border-color: rgba(239,68,68,.3);
  background: rgba(239,68,68,.04);
  color: var(--alta);
}
.stat-chip-alert .stat-num { color: var(--alta); }

/* ==========================================================
   REDESIGN v2 — Topbar search
   ========================================================== */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  transition: border-color 0.15s;
  flex: 0 0 220px;
}
.topbar-search:focus-within { border-color: var(--blue); }
.topbar-search svg { color: var(--text-muted); flex-shrink: 0; }
.topbar-search input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
}
.topbar-search input::placeholder { color: var(--text-muted); }

/* ==========================================================
   REDESIGN v2 — Card client colorido
   ========================================================== */
.card-client {
  color: var(--blue) !important;
  font-weight: 600;
}
.card-client svg { opacity: 1 !important; color: var(--blue); }

/* ==========================================================
   REDESIGN v2 — Chip "Atrasada · X dias"
   ========================================================== */
.card-overdue-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--alta);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ==========================================================
   REDESIGN v2 — Cores de avatar por usuário
   ========================================================== */
.card-avatar { transition: none; }

/* ==========================================================
   REDESIGN v2 — Skeleton loading
   ========================================================== */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}

.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.sk-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f8 25%, #dde3f0 50%, #eef1f8 75%);
  background-size: 1600px 100%;
  animation: shimmer 1.6s infinite linear;
}
.sk-line.sk-badge  { width: 38%; height: 16px; border-radius: 3px; }
.sk-line.sk-title  { width: 85%; height: 13px; }
.sk-line.sk-desc   { width: 72%; }
.sk-line.sk-desc2  { width: 55%; }

.sk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.sk-pill {
  width: 70px; height: 19px; border-radius: 3px;
  background: linear-gradient(90deg, #eef1f8 25%, #dde3f0 50%, #eef1f8 75%);
  background-size: 1600px 100%;
  animation: shimmer 1.6s infinite linear;
}
.sk-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(90deg, #eef1f8 25%, #dde3f0 50%, #eef1f8 75%);
  background-size: 1600px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ==========================================================
   PAINEL DO USUÁRIO
   ========================================================== */
.user-info { transition: background 0.15s; }
.user-info:hover { background: rgba(255,255,255,0.06); }

.user-panel {
  position: fixed;
  bottom: 90px;
  left: 8px;
  width: 228px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(5,11,46,0.18), 0 2px 8px rgba(5,11,46,0.08);
  padding: 20px 16px 16px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 9999;
}
.user-panel.open { display: flex; }

.up-photo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 2px;
}
.up-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7C3AED);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.up-camera-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,68,255,0.3);
  transition: background 0.15s;
}
.up-camera-btn:hover { background: var(--blue-hover); }

.up-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}
.up-email {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -4px;
}

.up-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.up-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  align-self: flex-start;
  margin-bottom: -2px;
}

.up-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.up-input:focus { border-color: var(--blue); }

.up-btn-primary {
  width: 100%;
  padding: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.up-btn-primary:hover { background: var(--blue-hover); }

.up-msg {
  font-size: 11px;
  min-height: 16px;
  text-align: center;
  width: 100%;
}
.up-msg.error   { color: var(--alta); }
.up-msg.success { color: var(--baixa); }

.up-row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Toggle switch */
.up-toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.up-toggle input { display: none; }
.up-toggle-track {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.up-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.up-toggle input:checked + .up-toggle-track { background: var(--blue); }
.up-toggle input:checked + .up-toggle-track::after { transform: translateX(16px); }

/* ==========================================================
   DARK MODE
   ========================================================== */
[data-dark] {
  --bg:             #0F1117;
  --white:          #1A1F2E;
  --border:         #2A3045;
  --text-primary:   #E8EDF5;
  --text-secondary: #8B96B0;
  --text-muted:     #4A5568;
  --blue-light:     rgba(0,68,255,0.15);
  --blue-lighter:   rgba(0,68,255,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}
[data-dark] body { background: var(--bg); }
[data-dark] .topbar,
[data-dark] .filter-panel-wrap,
[data-dark] .stats-row          { background: var(--white); border-color: var(--border); }
[data-dark] .kanban-card        { background: var(--white); border-color: var(--border); }
[data-dark] .kanban-column      { background: rgba(255,255,255,0.03); }
[data-dark] .modal-overlay      { background: rgba(0,0,0,0.7); }
[data-dark] .modal-box          { background: var(--white); }
[data-dark] .user-panel         { background: #1A1F2E; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
[data-dark] .up-input           { background: var(--bg); border-color: var(--border); color: var(--text-primary); }
[data-dark] .up-name            { color: var(--text-primary); }
[data-dark] .up-divider         { background: var(--border); }
[data-dark] .up-toggle-track    { background: var(--border); }
[data-dark] .topbar-search      { background: var(--white); border-color: var(--border); }
[data-dark] .topbar-search input { color: var(--text-primary); }
[data-dark] .filter-chip        { background: var(--bg); border-color: var(--border); color: var(--text-secondary); }
[data-dark] .stat-chip          { background: var(--white); border-color: var(--border); }
[data-dark] .card-footer        { border-color: var(--border); }
[data-dark] .up-row-toggle      { color: var(--text-primary); }

/* ==========================================================
   NOTIFICAÇÕES — sino + painel
   ========================================================== */
.notif-bell-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s, color 0.15s, padding 0.25s;
  position: relative;
  margin: 0 8px 2px;
}
.notif-bell-wrap:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar:hover .notif-bell-wrap {
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  margin: 0 0 2px;
}

.notif-bell-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.notif-bell-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.18s ease 0.05s, max-width 0.25s ease;
  overflow: hidden;
}
.sidebar:hover .notif-bell-label {
  opacity: 1;
  max-width: 160px;
}

.notif-badge {
  position: absolute;
  top: -4px; right: -5px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--alta);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--navy);
  line-height: 1;
}
.notif-badge.hidden { display: none; }

/* Painel */
.notif-panel {
  position: fixed;
  bottom: 70px;
  left: 68px;
  width: 320px;
  max-height: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(5,11,46,0.18), 0 2px 8px rgba(5,11,46,0.08);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}
.notif-panel.open { display: flex; }

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.notif-read-all {
  font-size: 11px;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  padding: 0;
}
.notif-read-all:hover { text-decoration: underline; }

.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.notif-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 16px 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(0,68,255,0.03); }

.notif-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-body { flex: 1; min-width: 0; }
.notif-msg {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================
   LEMBRETE DIÁRIO — pop-up central
   ========================================================== */
.dr-overlay {
  position: fixed; inset: 0;
  background: rgba(5,11,46,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.dr-overlay.open { opacity: 1; }

.dr-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(5,11,46,0.22);
  width: 100%;
  max-width: 460px;
  margin: 16px;
  transform: translateY(12px);
  transition: transform 0.25s;
  overflow: hidden;
}
.dr-overlay.open .dr-modal { transform: translateY(0); }

.dr-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.dr-header-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,68,255,0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dr-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.dr-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.dr-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.dr-close:hover { background: var(--bg); color: var(--text-primary); }

.dr-body {
  padding: 16px 20px;
  max-height: 320px;
  overflow-y: auto;
}
.dr-body::-webkit-scrollbar { width: 4px; }
.dr-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.dr-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dr-task-list { display: flex; flex-direction: column; gap: 8px; }

.dr-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.dr-task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.dr-task-info { flex: 1; min-width: 0; }
.dr-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-task-client {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-task-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.dr-status-triagem    { background: rgba(124,58,237,0.1); color: #7C3AED; }
.dr-status-pendente   { background: rgba(217,119,6,0.1);  color: #D97706; }
.dr-status-em_andamento { background: rgba(0,68,255,0.1); color: #0044FF; }

.dr-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.dr-btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dr-btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.dr-btn-primary {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.dr-btn-primary:hover { background: var(--blue-hover); }
