/* ═══════════════════════════════════════════════════════════════
   GAZAFI PROJECT MANAGER — Design System
   Paleta baseada no logo Gazafi Group
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary-dark: #0D1B2A;
  --secondary-dark: #1A2744;
  --sidebar-dark: #0F1F35;
  --sidebar-hover: #1E3052;
  --accent: #1565C0;
  --accent-hover: #1976D2;
  --bright: #2196F3;
  --crystal: #4FC3F7;
  --crystal-light: #B3E5FC;
  --surface: #F5F7FA;
  --surface-alt: #ECEEF3;
  --border: #DDE1EA;
  --border-dark: #C8CDD8;
  --white: #FFFFFF;
  --text-primary: #1A2133;
  --text-secondary: #5A6478;
  --text-muted: #8C93A3;
  --text-light: #FFFFFF;
  --danger: #EF5350;
  --danger-light: #FFEBEE;
  --warning: #FF9800;
  --warning-light: #FFF3E0;
  --success: #4CAF50;
  --success-light: #E8F5E9;
  --info: #2196F3;
  --shadow-sm: 0 1px 3px rgba(13,27,42,0.08), 0 1px 2px rgba(13,27,42,0.04);
  --shadow-md: 0 4px 12px rgba(13,27,42,0.12), 0 2px 6px rgba(13,27,42,0.06);
  --shadow-lg: 0 8px 32px rgba(13,27,42,0.16), 0 4px 12px rgba(13,27,42,0.08);
  --shadow-xl: 0 20px 60px rgba(13,27,42,0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --sidebar-width: 260px;
  --sidebar-mini: 64px;
  --topbar-h: 56px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; outline: none; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-mini); }

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: var(--topbar-h);
  flex-shrink: 0;
  position: relative;
}
.sidebar-logo img {
  width: 100%;
  max-width: 160px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  transition: var(--transition);
}
.sidebar.collapsed .sidebar-logo img {
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle {
  position: fixed;
  top: calc(var(--topbar-h) / 2);
  left: calc(var(--sidebar-width) - 12px);
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: left 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s;
  z-index: 200;
}
.sidebar-toggle:hover { background: var(--accent-hover); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: var(--transition);
}
.sidebar.collapsed .sidebar-section-label { opacity: 0; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.sidebar-item:hover { background: var(--sidebar-hover); color: #ffffff; }
.sidebar-item.active { background: var(--sidebar-hover); color: #ffffff; }
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--bright);
  border-radius: 0 2px 2px 0;
}
.sidebar-item .item-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-item .item-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-item .item-dot.item-dot-img {
  width: 26px; height: 26px;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
}
.sidebar-item .item-label { overflow: hidden; text-overflow: ellipsis; }
.sidebar.collapsed .item-label { display: none; }

.sidebar-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sidebar-workspace-header .ws-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.collapsed .sidebar-workspace-header { display: none; }

.sidebar-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  color: var(--crystal);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.sidebar-add-btn:hover { color: #ffffff; }
.sidebar.collapsed .sidebar-add-btn span { display: none; }

.sidebar-item-wrap { position: relative; }
.sidebar-rename-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 4px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  display: none; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-item-wrap:hover .sidebar-rename-btn { display: flex; }
.sidebar-rename-btn:hover { background: rgba(255,255,255,0.1); color: var(--crystal); }
.sidebar.collapsed .sidebar-rename-btn { display: none !important; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.user-chip:hover { background: var(--sidebar-hover); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.avatar-lg { width: 40px; height: 40px; font-size: 15px; }
.user-chip-info { overflow: hidden; }
.user-chip-name { font-size: 13px; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar.collapsed .user-chip-info { display: none; }

/* ─── Main Content ──────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}
.main-content.sidebar-collapsed { margin-left: var(--sidebar-mini); }

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.topbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-alt); }
.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--surface); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #C62828; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--surface); }

/* 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(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.notif-btn:hover { background: var(--surface); color: var(--text-primary); }
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 9px; font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.notif-badge.hidden { display: none; }

/* ─── View Toggle ───────────────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.view-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.view-btn.active { background: var(--white); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.view-btn:hover:not(.active) { color: var(--text-primary); }

/* ─── Page Content ──────────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

/* ─── Board Table ───────────────────────────────────────────────────────── */
.board-view { overflow-x: auto; }

.board-group {
  margin-bottom: 32px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}
.group-color-bar {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}
.group-toggle {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  transition: var(--transition);
  flex-shrink: 0;
}
.group-toggle.collapsed { transform: rotate(-90deg); }
.group-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  cursor: text;
}
.group-name-input {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--bright) !important;
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 120px;
}
.group-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 2px 8px;
}
.group-actions {
  display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: var(--transition);
}
.group-header:hover .group-actions { opacity: 1; }
.group-action-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}
.group-action-btn:hover { background: var(--surface-alt); color: var(--text-primary); }

/* Board table */
.board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.board-table thead th {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  user-select: none;
}
.board-table thead th:first-child { border-left: none; border-radius: var(--radius-sm) 0 0 0; }
.board-table thead th:last-child  { border-right: none; border-radius: 0 var(--radius-sm) 0 0; }

/* Column widths */
.board-table .col-drag     { width: 36px; min-width: 36px; max-width: 36px; padding: 6px 4px; }
.board-table .col-title    { min-width: 200px; }
.board-table .col-assignee { width: 110px; min-width: 90px; }
.board-table .col-status   { width: 130px; min-width: 100px; }
.board-table .col-date     { width: 95px;  min-width: 80px; }
.board-table .col-priority { width: 100px; min-width: 80px; }
.board-table .col-notes    { width: 160px; min-width: 100px; }
.board-table .col-budget   { width: 115px; min-width: 90px; }
.board-table .col-files    { width: 65px;  min-width: 55px; }

.board-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.board-table tbody tr:hover { background: rgba(33,150,243,0.03); }
.board-table tbody tr.sortable-ghost { opacity: 0.4; background: var(--crystal-light); }
.board-table tbody tr.sortable-drag { box-shadow: var(--shadow-lg); opacity: 0.9; }

.board-table tbody td {
  padding: 6px 12px;
  border-right: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.board-table tbody td:last-child { border-right: none; }

/* Drag handle */
.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
  font-size: 12px;
  padding: 0 4px;
}
tr:hover .drag-handle { opacity: 1; }
.drag-handle:active { cursor: grabbing; }

/* Task title cell */
.task-title-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-title-text {
  flex: 1;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
}
.task-title-text:hover { color: var(--bright); }
.task-open-btn {
  opacity: 0;
  font-size: 11px;
  color: var(--bright);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--crystal-light);
  transition: var(--transition);
  white-space: nowrap;
}
tr:hover .task-open-btn { opacity: 1; }

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  gap: 4px;
}
.status-pill:hover { opacity: 0.85; }
.status-empty {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px dashed var(--border-dark);
  font-style: italic;
  letter-spacing: 0.1px;
}
.modal-prop-trigger .status-empty::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-dark);
  margin-right: 5px;
}

/* Priority pill */
.priority-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}
.priority-critical { background: #FFEBEE; color: #C62828; }
.priority-high { background: #FFF3E0; color: #E65100; }
.priority-medium { background: #FFF9C4; color: #F57F17; }
.priority-low { background: #E8F5E9; color: #2E7D32; }
.priority-none { background: var(--surface-alt); color: var(--text-muted); }

/* Assignee avatars */
.assignee-list {
  display: flex; align-items: center; gap: -4px;
}
.assignee-list .avatar {
  width: 26px; height: 26px;
  font-size: 10px;
  border: 2px solid white;
  margin-right: -6px;
  cursor: pointer;
  transition: var(--transition);
}
.assignee-list .avatar:hover { transform: scale(1.1); z-index: 1; }

/* Date cell */
.date-cell {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.date-cell.overdue { color: var(--danger); font-weight: 600; }
.date-cell.near { color: var(--warning); font-weight: 600; }
.date-cell.empty { color: var(--text-muted); }

/* Budget cell */
.budget-cell {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

/* Notes cell */
.notes-cell {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.notes-cell:hover { color: var(--text-primary); }

/* Files cell */
.files-cell {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Add task row */
.add-task-row td {
  padding: 8px 12px;
  border-bottom: none;
}
.add-task-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.add-task-btn:hover { color: var(--bright); background: rgba(33,150,243,0.05); }

/* ─── Kanban View ───────────────────────────────────────────────────────── */
.kanban-view {
  display: none;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}
.kanban-view.active { display: flex; }

.kanban-column {
  min-width: 280px;
  width: 280px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 16px;
  flex-shrink: 0;
}
.kanban-col-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.kanban-col-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.kanban-col-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--white);
  border-radius: 10px;
  padding: 2px 8px;
}

.kanban-cards {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--bright); }
.kanban-card.sortable-ghost { opacity: 0.3; }
.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.kanban-card-meta {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.kanban-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}

/* ─── Task Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.task-modal {
  width: 680px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.modal-overlay.open .task-modal { transform: translateX(0); }

.modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
  position: sticky; top: 0;
  background: var(--white);
  z-index: 5;
}
.modal-title-input {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.modal-title-input:focus { border-bottom-color: var(--bright); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface); color: var(--text-primary); }

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

/* ─── Bloco de propriedades (card estilo Linear/Notion) ─── */
.modal-props-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}
.modal-prop-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  gap: 0;
  transition: background 0.12s;
}
.modal-prop-row:last-child { border-bottom: none; }
.modal-prop-row:hover { background: rgba(0,0,0,0.02); }
.modal-prop-row-tall { align-items: flex-start; min-height: 54px; }

.modal-prop-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.modal-prop-label i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}
.modal-prop-value {
  flex: 1;
  min-width: 0;
}
.modal-prop-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.12s;
  gap: 6px;
}
.modal-prop-trigger:hover {
  border-color: var(--border-dark);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.modal-prop-prefix {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 600;
}

/* Inputs compactos dentro do card de propriedades */
.form-input-inline {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  transition: var(--transition);
}
.form-input-inline:hover { border-color: var(--border); background: var(--white); }
.form-input-inline:focus { border-color: var(--bright); background: var(--white);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.1); outline: none; }

.form-select-inline {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  appearance: auto;
}
.form-select-inline:hover { border-color: var(--border); background: var(--white); }
.form-select-inline:focus { border-color: var(--bright); background: var(--white);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.1); outline: none; }

/* Chips de responsáveis */
.modal-assignees-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px 2px 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.assignee-chip-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignee-chip-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  margin-left: 1px;
  transition: color 0.12s;
}
.assignee-chip-remove:hover { color: var(--danger); }

/* ─── Seções de conteúdo ─── */
.modal-section {
  margin-bottom: 18px;
}
.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-section-title i { color: var(--bright); font-size: 12px; }
.modal-section-action {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.modal-section-action:hover { color: var(--accent-hover); }

/* Zona de perigo (excluir) */
.modal-danger-zone {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.modal-danger-zone .btn {
  color: var(--danger);
  font-size: 12px;
}
.modal-danger-zone .btn:hover { background: var(--danger-light); }

/* Compatibilidade com IDs antigos ainda referenciados no JS */
.modal-field { margin-bottom: 16px; }
.modal-field-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.modal-field-value {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: var(--radius-sm); min-height: 36px; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.modal-field-value:hover { background: var(--surface); border-color: var(--border); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}
.form-input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(33,150,243,0.1); }

.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.form-select:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(33,150,243,0.1); }

.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  resize: vertical;
  min-height: 80px;
  transition: var(--transition);
}
.form-textarea:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(33,150,243,0.1); }

/* Comments */
.comments-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 0; }
.comments-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.comment-item {
  display: flex; gap: 10px;
  margin-bottom: 12px;
}
.comment-content-wrap { flex: 1; }
.comment-author { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.comment-time { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 8px 12px;
  margin-top: 4px;
}
.comment-input-row {
  display: flex; gap: 8px; align-items: flex-end;
  margin-top: 12px;
}
.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  transition: var(--transition);
}
.comment-input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(33,150,243,0.1); }

/* Comment actions (reply/edit/delete) */
.comment-actions {
  display: flex; align-items: center; gap: 2px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.comment-item:hover > div > .comment-actions,
.comment-item:hover .comment-content-wrap .comment-actions { opacity: 1; }
.comment-action-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--text-muted);
  padding: 2px 6px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px;
  transition: var(--transition);
}
.comment-action-btn:hover { background: var(--surface-alt); color: var(--text-primary); }
.comment-action-danger:hover { color: var(--danger) !important; background: var(--danger-light) !important; }
.comment-edited { font-size: 10px; color: var(--text-muted); font-style: italic; }

/* Respostas aninhadas */
.comment-reply {
  margin-left: 36px;
  padding-top: 10px;
}
.comment-reply .comment-text {
  background: var(--surface-alt);
  font-size: 12px;
}
.reply-form-inner {
  margin-top: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* Budget calculator trigger button */
.btn-calc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-calc-trigger:hover {
  background: var(--crystal-light);
  color: var(--accent);
}

/* Mini budget calculator popup */
.budget-calc {
  position: fixed;
  z-index: 9999;
  width: 310px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}
.budget-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.budget-calc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.budget-calc-close:hover { background: var(--border); color: var(--text); }

.budget-calc-total-area {
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  text-align: center;
}
.budget-calc-total-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.budget-calc-total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.budget-calc-entries {
  max-height: 140px;
  overflow-y: auto;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.calc-entry-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
  font-style: italic;
}
.calc-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.calc-entry:hover { background: var(--surface); }
.calc-entry-label {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-entry-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.calc-entry-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  transition: var(--transition);
}
.calc-entry-remove:hover { background: var(--danger-light); color: var(--danger); }

.budget-calc-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.budget-calc-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: var(--transition);
}
.budget-calc-input:focus {
  border-color: var(--bright);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.btn-calc-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-blue);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-calc-add:hover { background: var(--bright-blue); }

.budget-calc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-alt);
}

/* Files */
.files-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 0; }
.file-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.file-item:hover { background: var(--surface); }
.file-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--crystal-light); border-radius: var(--radius-sm); font-size: 14px; color: var(--accent); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; display: block; }
.file-name:hover { text-decoration: underline; color: var(--accent-hover); }
.file-size { font-size: 11px; color: var(--text-muted); }

/* ─── Dashboard: seletor de projeto (dropdown) ───────────────────────────── */
.dash-proj-selector {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

/* Botão principal */
.dash-proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  max-width: 360px;
}
.dash-proj-btn:hover {
  border-color: var(--bright);
  box-shadow: var(--shadow-md);
}
.dash-proj-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.dash-proj-btn-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.dash-proj-btn-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.dash-proj-btn-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Painel dropdown */
.dash-proj-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
}
.dash-proj-dropdown.open { display: block; }

/* Campo de busca */
.dash-proj-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.dash-proj-search {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
}
.dash-proj-search::placeholder { color: var(--text-muted); }

/* Lista de projetos */
.dash-proj-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.dash-proj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.dash-proj-item:hover   { background: var(--surface); }
.dash-proj-item.active  { background: rgba(33,150,243,0.08); }

.dash-proj-item-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}
.dash-proj-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dash-proj-item-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dash-proj-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-proj-item-check {
  font-size: 12px;
  color: var(--bright);
  flex-shrink: 0;
}
.dash-proj-empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Dark mode */
[data-theme="dark"] .dash-proj-btn              { background: var(--surface-alt); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .dash-proj-btn:hover        { border-color: var(--bright); }
[data-theme="dark"] .dash-proj-dropdown         { background: var(--surface-alt); border-color: var(--border); }
[data-theme="dark"] .dash-proj-search-wrap      { border-bottom-color: var(--border); }
[data-theme="dark"] .dash-proj-search           { color: var(--text-primary); }
[data-theme="dark"] .dash-proj-item:hover       { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .dash-proj-item.active      { background: rgba(33,150,243,0.12); }
[data-theme="dark"] .dash-proj-item-name        { color: var(--text-primary); }

/* ─── Dashboard ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  min-width: 0;           /* permite que o card encolha dentro do grid */
  overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  white-space: nowrap;   /* nunca quebra linha */
}
/* Classe aplicada via JS: apenas desativa o tamanho fixo para o JS controlar */
.stat-value.stat-value-currency {
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.project-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.project-list-item:hover { background: var(--surface); }
.project-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.project-info { flex: 1; min-width: 0; }
.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.progress-bar-wrap {
  height: 4px;
  background: var(--surface-alt);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--bright));
  transition: width 0.6s ease;
}

/* ─── Dropdown/Popover ──────────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-flex;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 500;
  display: none;
  overflow: hidden;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--surface); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Status picker dropdown */
.status-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 600;
  min-width: 230px;
  padding: 6px;
  display: none;
}
.status-picker.open { display: block; }

/* Título interno do picker */
.status-picker-heading {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

/* Item do picker — novo estilo com pill colorida */
.status-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
  margin-bottom: 2px;
}
.status-opt:last-child { margin-bottom: 0; }
.status-opt:hover { background: var(--surface-alt); }
.status-opt-active { background: var(--surface); }

.status-opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.1s;
}
.status-opt:hover .status-opt-pill { opacity: 0.9; }

.status-opt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-opt-check {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent);
}

/* Compatibilidade com status-picker-item antigo (tabela inline) */
.status-picker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px; font-weight: 600;
}
.status-picker-item:hover { background: var(--surface); }

/* ─── Notifications Panel ───────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: var(--topbar-h);
  right: 16px;
  width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 400;
  max-height: 480px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-title { font-size: 14px; font-weight: 700; }
.notif-panel-body { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.notif-item:hover { background: var(--surface); }
.notif-item.unread { background: rgba(33,150,243,0.04); }
.notif-item.unread::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--bright);
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
}
.notif-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.notif-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px; color: var(--text-muted);
  font-size: 13px; gap: 8px;
}

/* ─── Login / Register ──────────────────────────────────────────────────── */
@keyframes auth-bg-zoom {
  0%   { transform: scale(1)    translate(0, 0); }
  33%  { transform: scale(1.06) translate(-1%, 0.5%); }
  66%  { transform: scale(1.04) translate(0.8%, -0.8%); }
  100% { transform: scale(1)    translate(0, 0); }
}

.auth-page {
  min-height: 100vh;
  background: #070E1A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* fundo: wallpaper com slow-zoom */
.auth-page::before {
  content: '';
  position: fixed;
  inset: -6%;          /* margem para o zoom não mostrar borda branca */
  background: url('/static/images/auth-bg.png') center center / cover no-repeat;
  animation: auth-bg-zoom 28s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* overlay: vinheta mínima nas bordas para destacar o card central */
.auth-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7,14,26,0.05) 0%, rgba(7,14,26,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.auth-card {
  background: rgba(6, 14, 30, 0.62);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 48px rgba(0,0,0,0.55);
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.auth-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.auth-logo-name {
  display: none;
}
.auth-logo-sub {
  display: none;
  text-transform: uppercase;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 28px;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.auth-form .form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--white);
  transition: var(--transition);
}
.auth-form .form-control::placeholder { color: rgba(255,255,255,0.3); }
.auth-form .form-control:focus {
  border-color: var(--bright);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}
.auth-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--bright));
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(33,150,243,0.35); }
.auth-btn:active { transform: translateY(0); }
.auth-link {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
}
.auth-link a { color: var(--crystal); font-weight: 600; }
.auth-link a:hover { color: var(--white); }
.auth-error {
  background: rgba(239,83,80,0.15);
  border: 1px solid rgba(239,83,80,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #FF8A80;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.3s ease;
  border-left: 3px solid var(--bright);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ─── Confirm Dialog ────────────────────────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,0.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.confirm-overlay.open { display: flex; }
.confirm-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  margin: 16px;
  box-shadow: var(--shadow-xl);
}
.confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.confirm-message { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 32px;
  color: var(--text-muted);
  gap: 12px;
  text-align: center;
}
.empty-state-icon { font-size: 48px; opacity: 0.3; }
.empty-state-title { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.empty-state-text { font-size: 13px; max-width: 280px; }

/* ─── Inline Edit ───────────────────────────────────────────────────────── */
.inline-edit-input {
  background: var(--white) !important;
  border: 1px solid var(--bright) !important;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  width: 100%;
  box-shadow: 0 0 0 2px rgba(33,150,243,0.15);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-width: 220px; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0 !important; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .task-modal { width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-prop-label { width: 110px; font-size: 11px; }
  .notif-panel { width: calc(100vw - 32px); right: 16px; left: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .board-table { min-width: 600px; }
}

/* ─── Loading spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(33,150,243,0.2);
  border-top-color: var(--bright);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Color picker ──────────────────────────────────────────────────────── */
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px;
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.color-swatch:hover, .color-swatch.selected { border-color: white; transform: scale(1.15); box-shadow: var(--shadow-md); }

/* ─── Color picker v2 (Create/Edit Project) ─────────────────────────────── */
.color-grid-v2 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.color-swatch-v2 {
  width: 100%; aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.color-swatch-v2:hover { transform: scale(1.08); box-shadow: var(--shadow-md); }
.color-swatch-v2.selected { border-color: white; box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }
.color-swatch-v2.selected::after {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ─── Add group bar ──────────────────────────────────────────────────────── */
.add-group-bar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-dark);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.add-group-bar:hover { border-color: var(--bright); color: var(--bright); background: rgba(33,150,243,0.04); }

/* ─── Scrollable x for board ─────────────────────────────────────────────── */
.board-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — sobrescreve variáveis de cor da interface
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --surface:        #111827;
  --surface-alt:    #1F2937;
  --border:         #374151;
  --border-dark:    #4B5563;
  --white:          #1F2937;
  --text-primary:   #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;
  --crystal-light:  rgba(79,195,247,0.12);
  --danger-light:   rgba(239,83,80,0.15);
  --success-light:  rgba(76,175,80,0.15);
  --warning-light:  rgba(255,152,0,0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Ajustes de cor específicos no dark mode ─────────────────────────── */

/* Estrutura geral */
[data-theme="dark"] body          { background: var(--surface); color: var(--text-primary); }
[data-theme="dark"] .page-content { background: var(--surface); }
[data-theme="dark"] .topbar       { background: #1F2937; border-bottom-color: var(--border); }
[data-theme="dark"] .topbar-title { color: var(--text-primary); }

/* ── SIDEBAR: sempre escura — texto deve SEMPRE ser branco ───────────── */
/* (--white foi redefinido como cor escura no dark mode,                  */
/*  mas no sidebar ele era usado como COR DE TEXTO. Corrigimos aqui.)     */
[data-theme="dark"] .sidebar-item:hover  { background: var(--sidebar-hover); color: #ffffff; }
[data-theme="dark"] .sidebar-item.active { background: var(--sidebar-hover); color: #ffffff; }
[data-theme="dark"] .sidebar-add-btn:hover { color: #ffffff; }
/* Sidebar footer: nome e e-mail do usuário — sidebar é sempre escura, texto deve ser sempre claro */
[data-theme="dark"] .sidebar .user-chip-name  { color: #ffffff !important; }
[data-theme="dark"] .sidebar .user-chip-email { color: rgba(255,255,255,0.55) !important; }

/* ── Botões ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .btn-secondary         { background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-primary); }
[data-theme="dark"] .btn-secondary:hover   { background: rgba(255,255,255,0.07); border-color: var(--border-dark); }
[data-theme="dark"] .btn-ghost:hover       { background: rgba(255,255,255,0.07); color: var(--text-primary); }
[data-theme="dark"] .btn-icon:hover        { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .btn-theme-toggle:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }
[data-theme="dark"] .modal-close:hover     { background: rgba(255,255,255,0.09); color: var(--text-primary); }

/* Notificações e topbar actions */
[data-theme="dark"] .notif-btn        { color: var(--text-secondary); }
[data-theme="dark"] .notif-btn:hover  { background: rgba(255,255,255,0.07); color: var(--text-primary); }

/* ── View toggle (Tabela / Kanban) ───────────────────────────────────── */
[data-theme="dark"] .view-toggle               { background: var(--surface-alt); border-color: var(--border); }
[data-theme="dark"] .view-btn                  { color: var(--text-muted); }
[data-theme="dark"] .view-btn.active           { background: rgba(255,255,255,0.1); color: var(--text-primary); box-shadow: none; }
[data-theme="dark"] .view-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Board / Grupos / Tarefas ────────────────────────────────────────── */
[data-theme="dark"] .board-table thead th       { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .board-table tbody tr       { border-bottom-color: var(--border); }
[data-theme="dark"] .board-table tbody td       { border-right-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .board-table tbody tr:hover { background: rgba(255,255,255,0.025); }
[data-theme="dark"] .board-scroll-wrapper       { border-color: var(--border); }
[data-theme="dark"] .board-group                { background: transparent; }
[data-theme="dark"] .group-header               { background: var(--surface-alt); }
[data-theme="dark"] .group-action-btn:hover     { background: rgba(255,255,255,0.1); color: var(--text-primary); }
[data-theme="dark"] .add-task-row td            { background: var(--surface); color: var(--text-muted); }
[data-theme="dark"] .add-task-row:hover td      { background: rgba(33,150,243,0.07); color: var(--bright); }
[data-theme="dark"] .task-title-text            { color: var(--text-primary); }
[data-theme="dark"] .task-title-text:hover      { color: var(--bright); }

/* ── Modal da tarefa ─────────────────────────────────────────────────── */
[data-theme="dark"] .task-modal          { background: #1F2937; }
[data-theme="dark"] .modal-header        { background: #161E2E; border-bottom-color: var(--border); }
[data-theme="dark"] .modal-body          { background: #1F2937; }
[data-theme="dark"] .modal-props-card    { background: #161E2E; border-color: var(--border); }
[data-theme="dark"] .modal-prop-row      { border-bottom-color: var(--border); }
[data-theme="dark"] .modal-prop-label    { color: var(--text-muted); }
[data-theme="dark"] .modal-title-input   { color: var(--text-primary); background: transparent; }
[data-theme="dark"] .modal-section-title { color: var(--text-secondary); }

/* ── Formulários ─────────────────────────────────────────────────────── */
[data-theme="dark"] .form-input               { background: #161E2E; border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .form-input:focus         { background: #111827; border-color: var(--bright); }
[data-theme="dark"] .form-select              { background: #161E2E; border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .form-input-inline        { color: var(--text-primary); background: transparent; }
[data-theme="dark"] .form-input-inline:hover  { background: rgba(255,255,255,0.05); border-color: var(--border); }
[data-theme="dark"] .form-input-inline:focus  { background: #161E2E; border-color: var(--bright); }
[data-theme="dark"] textarea.form-input       { background: #161E2E; color: var(--text-primary); }

/* ── Dropdowns ────────────────────────────────────────────────────────── */
[data-theme="dark"] .dropdown-menu            { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .dropdown-item            { color: var(--text-primary); }
[data-theme="dark"] .dropdown-item:hover      { background: rgba(255,255,255,0.07); color: var(--text-primary); }
[data-theme="dark"] .dropdown-item.danger     { color: var(--danger); }
[data-theme="dark"] .dropdown-divider         { border-color: var(--border); }

/* ── Kanban ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .kanban-col             { background: var(--surface-alt); }
[data-theme="dark"] .kanban-card            { background: #161E2E; border-color: var(--border); }
[data-theme="dark"] .kanban-card:hover      { background: #1a2540; border-color: var(--bright); }

/* ── Notificações ────────────────────────────────────────────────────── */
[data-theme="dark"] .notif-panel            { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .notif-panel-header     { border-bottom-color: var(--border); }
[data-theme="dark"] .notif-item             { border-bottom-color: var(--border); }
[data-theme="dark"] .notif-item:hover       { background: rgba(255,255,255,0.05); }

/* ── Dashboard ────────────────────────────────────────────────────────── */
[data-theme="dark"] .stat-card              { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .project-card           { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .project-card:hover     { background: #243044; border-color: var(--bright); }
[data-theme="dark"] .chart-container        { background: #1F2937; }

/* ── Confirm dialog ───────────────────────────────────────────────────── */
[data-theme="dark"] .confirm-dialog         { background: #1F2937; }
[data-theme="dark"] .confirm-overlay        { background: rgba(0,0,0,0.6); }

/* ── Calculadora de orçamento ─────────────────────────────────────────── */
[data-theme="dark"] .budget-calc            { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .budget-calc-header     { background: #161E2E; border-bottom-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .budget-calc-entries    { border-bottom-color: var(--border); }
[data-theme="dark"] .budget-calc-input      { background: #161E2E; border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .budget-calc-footer     { background: #161E2E; }
[data-theme="dark"] .calc-entry:hover       { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .calc-entry-val         { color: var(--text-primary); }

/* ── Status picker ───────────────────────────────────────────────────── */
[data-theme="dark"] .status-picker          { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .status-picker-heading  { border-bottom-color: var(--border); color: var(--text-muted); background: #161E2E; }
[data-theme="dark"] .status-opt:hover       { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .status-opt             { color: var(--text-primary); }

/* ── Perfil ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .profile-card           { background: #1F2937; border-color: var(--border); }
[data-theme="dark"] .profile-avatar-area    { border-bottom-color: var(--border); }
[data-theme="dark"] .theme-option           { border-color: var(--border); }
[data-theme="dark"] .theme-option:hover     { border-color: var(--bright); background: rgba(33,150,243,0.05); }
[data-theme="dark"] .theme-option-active    { border-color: var(--bright) !important; background: rgba(33,150,243,0.08) !important; }
[data-theme="dark"] .profile-field .form-input { background: #161E2E; }

/* ── Scrollbar no dark mode ──────────────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border-dark); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Theme toggle button in topbar */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}
.btn-theme-toggle:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════════ */
.profile-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-card-title i { color: var(--bright); }

.profile-avatar-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  transition: background 0.2s;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 50%;
}
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }

.profile-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.profile-field {
  margin-bottom: 14px;
}

.profile-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.profile-color-grid {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  gap: 6px;
}

/* Password input with eye icon */
.password-input-wrap {
  position: relative;
}
.password-input-wrap .form-input {
  padding-right: 38px;
  width: 100%;
}
.btn-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-eye:hover { color: var(--text-primary); }

/* Theme selector */
.theme-options {
  display: flex;
  gap: 16px;
}

.theme-option {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}
.theme-option:hover { border-color: var(--bright); }
.theme-option-active { border-color: var(--bright) !important; background: rgba(33,150,243,0.05); }

.theme-preview {
  width: 100%;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}
.theme-preview-light { background: #F5F7FA; }
.theme-preview-dark  { background: #111827; }

.theme-preview .tp-sidebar {
  width: 30%;
  height: 100%;
}
.theme-preview-light .tp-sidebar { background: #0D1B2A; }
.theme-preview-dark  .tp-sidebar { background: #0D1B2A; }

.theme-preview .tp-content {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview .tp-bar {
  height: 10px;
  border-radius: 3px;
}
.theme-preview-light .tp-bar { background: #ECEEF3; }
.theme-preview-dark  .tp-bar { background: #1F2937; }

.theme-preview .tp-card {
  flex: 1;
  border-radius: 4px;
}
.theme-preview-light .tp-card { background: #FFFFFF; border: 1px solid #DDE1EA; }
.theme-preview-dark  .tp-card { background: #1F2937; border: 1px solid #374151; }

.theme-option-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.theme-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--bright);
  font-size: 16px;
  display: none;
}
