/* =============================================================
   Verve Projetos — Design System
   Paleta: Branco / Preto / Laranja
   Fonte: Heebo (Google Fonts)
   ============================================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:        #F97316;
  --orange-dark:   #EA6C0A;
  --orange-light:  #FFF0E5;
  --orange-mid:    #FDBA74;
  --black:         #111111;
  --gray-900:      #1F2937;
  --gray-700:      #374151;
  --gray-500:      #6B7280;
  --gray-300:      #D1D5DB;
  --gray-100:      #F3F4F6;
  --gray-50:       #F9FAFB;
  --white:         #FFFFFF;
  --border:        #E5E7EB;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --sidebar-w:     240px;
  --topbar-h:      56px;
  --transition:    150ms ease;

  /* Status */
  --s-pendente:    #6B7280;
  --s-andamento:   #3B82F6;
  --s-aguardando:  #F59E0B;
  --s-aprovado:    #10B981;
  --s-ajuste:      #EF4444;
  --s-concluido:   #111111;
}

html, body {
  height: 100%;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.logo-text-orange { color: var(--orange); }
.logo-text-white  { color: var(--white); }
.logo-text-dark   { color: var(--black); }

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

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.login-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-desc  { color: var(--gray-500); margin-bottom: 24px; font-size: 13px; }

.login-footer {
  text-align: center;
  color: var(--gray-700);
  font-size: 12px;
  margin-top: 24px;
}

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

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 100;
  transition: transform var(--transition);
}

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

.sidebar-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.sidebar-close { display: none; color: var(--gray-500); font-size: 16px; }

.sidebar-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  font-size: 13.5px;
}
.sidebar-link:hover { background: var(--gray-50); color: var(--black); }
.sidebar-link.active { background: var(--orange-light); color: var(--orange); font-weight: 600; }
.sidebar-link svg { opacity: .7; flex-shrink: 0; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-projects {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 4px 20px 8px;
}

.sidebar-project-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition);
  cursor: pointer;
}
.sidebar-project-link:hover { background: var(--gray-50); }
.sidebar-project-link.active { background: var(--orange-light); color: var(--orange); }

.project-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-loading { padding: 12px 20px; color: var(--gray-500); font-size: 12px; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-user { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.user-avatar-small {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name-small { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.user-role-small { font-size: 11px; color: var(--gray-500); }
.btn-logout { color: var(--gray-500); padding: 6px; border-radius: var(--radius); transition: color var(--transition); }
.btn-logout:hover { color: var(--orange); }

/* ---- Main ---- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 50;
}
.topbar-menu-btn { display: none; color: var(--gray-700); padding: 6px; }
.topbar-title { font-size: 16px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-notif-btn {
  position: relative;
  padding: 6px;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: color var(--transition);
}
.topbar-notif-btn:hover { color: var(--orange); }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--orange);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.app-view {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ---- Overlay mobile ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 90;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--gray-700); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 14px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.input-password-wrapper { position: relative; }
.input-password-wrapper .form-input { padding-right: 40px; }
.btn-toggle-pass {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-danger   { background: #FEE2E2; color: #DC2626; }
.btn-danger:hover { background: #FCA5A5; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); }
.btn-block    { width: 100%; justify-content: center; }
.btn-sm       { padding: 5px 10px; font-size: 12px; }
.btn-icon     { padding: 7px; border-radius: var(--radius); }
.btn-text-sm  { background: none; color: var(--orange); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius); }
.btn-text-sm:hover { background: var(--orange-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   ALERTAS
   ============================================================ */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.alert-success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }

/* ============================================================
   CARDS & GRID
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 800; }
.page-subtitle { color: var(--gray-500); font-size: 13px; margin-top: 2px; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--black); }
.stat-sub   { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--project-color, var(--orange));
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.project-card-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; padding-left: 4px; }
.project-card-desc { color: var(--gray-500); font-size: 12px; margin-bottom: 12px; padding-left: 4px; }
.project-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gray-500); padding-left: 4px; }

/* ============================================================
   BOARD (KANBAN)
   ============================================================ */
.board-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  min-height: calc(100vh - 180px);
  align-items: flex-start;
}
.board-column {
  flex-shrink: 0;
  width: 280px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.board-column-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.board-column-count { font-size: 11px; color: var(--gray-500); background: var(--white); border: 1px solid var(--border); padding: 1px 6px; border-radius: 20px; }

.task-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.task-card:hover { box-shadow: var(--shadow); }
.task-card-title { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; line-height: 1.4; }
.task-card-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.priority-baixa   { background: #F0FDF4; color: #15803D; }
.priority-media   { background: #FFF7ED; color: #C2410C; }
.priority-alta    { background: #FEF3C7; color: #B45309; }
.priority-urgente { background: #FEE2E2; color: #B91C1C; }

.due-date-badge {
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 3px;
}
.due-date-badge.overdue { color: #DC2626; }

.task-assignee {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.task-icons { display: flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 11px; }
.task-icon-group { display: flex; align-items: center; gap: 2px; }

.add-task-btn {
  width: 100%;
  padding: 8px;
  color: var(--gray-500);
  font-size: 13px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), color var(--transition);
  margin-top: 4px;
}
.add-task-btn:hover { background: var(--white); color: var(--orange); }

/* ============================================================
   CALENDÁRIO
   ============================================================ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-title { font-size: 18px; font-weight: 800; }
.calendar-nav { display: flex; align-items: center; gap: 8px; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calendar-day-header {
  background: var(--gray-100);
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.calendar-cell {
  background: var(--white);
  min-height: 100px;
  padding: 8px;
  vertical-align: top;
}
.calendar-cell.other-month { background: var(--gray-50); }
.calendar-cell.today { background: var(--orange-light); }
.calendar-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.calendar-cell.today .calendar-date {
  color: var(--orange);
}
.calendar-task-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: var(--white);
  background: var(--orange);
  display: block;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 210;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { color: var(--gray-500); font-size: 16px; padding: 4px; }
.modal-close:hover { color: var(--black); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* Task detail modal — wide */
.modal.modal-wide { max-width: 860px; }
.task-detail-grid { display: grid; grid-template-columns: 1fr 240px; gap: 24px; }
.task-detail-main {}
.task-detail-sidebar { border-left: 1px solid var(--border); padding-left: 20px; }

/* ============================================================
   COMENTÁRIOS & HISTÓRICO
   ============================================================ */
.comment-list { margin-bottom: 16px; }
.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comment-avatar.client { background: var(--gray-700); }
.comment-bubble {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  flex: 1;
}
.comment-meta { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.comment-content { font-size: 13px; line-height: 1.5; }

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.history-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 4px;
  flex-shrink: 0;
}
.history-text { flex: 1; color: var(--gray-700); }
.history-time { color: var(--gray-500); white-space: nowrap; }

/* ============================================================
   NOTIFICAÇÕES
   ============================================================ */
.notif-panel {
  position: absolute;
  top: var(--topbar-h);
  right: 20px;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  overflow: hidden;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--orange-light); }
.notif-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: var(--gray-500); }
.notif-time { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.notif-empty { padding: 32px; text-align: center; color: var(--gray-500); font-size: 13px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight .25s ease;
  max-width: 320px;
}
.toast.success { background: #15803D; }
.toast.error   { background: #B91C1C; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   APROVAÇÃO (cliente)
   ============================================================ */
.approval-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.approval-bar p { flex: 1; font-size: 13px; font-weight: 500; color: #92400E; }

.btn-approve { background: #DCFCE7; color: #15803D; }
.btn-approve:hover { background: #BBF7D0; }
.btn-reject  { background: #FEE2E2; color: #B91C1C; }
.btn-reject:hover  { background: #FCA5A5; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-section { margin-bottom: 32px; }
.settings-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.users-table th { font-weight: 700; color: var(--gray-500); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--gray-50); }
.users-table tr:hover td { background: var(--gray-50); }

.role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.role-admin  { background: var(--orange-light); color: var(--orange-dark); }
.role-client { background: var(--gray-100); color: var(--gray-700); }

.active-badge   { background: #DCFCE7; color: #15803D; }
.inactive-badge { background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   AUTOMATIONS
   ============================================================ */
.automation-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.automation-info { flex: 1; }
.automation-name { font-weight: 600; font-size: 13.5px; }
.automation-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.automation-toggle {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--gray-300);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.automation-toggle.on { background: var(--orange); }
.automation-toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  top: 2px; left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.automation-toggle.on::after { transform: translateX(16px); }

/* ============================================================
   MISC
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-muted { color: var(--gray-500); }
.text-sm    { font-size: 12px; }
.font-bold  { font-weight: 700; }
.flex       { display: flex; }
.items-center { align-items: center; }
.gap-2      { gap: 8px; }
.gap-3      { gap: 12px; }
.mb-4       { margin-bottom: 16px; }
.mt-4       { margin-top: 16px; }
.w-full     { width: 100%; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state svg { opacity: .3; margin-bottom: 12px; }
.empty-state p   { font-size: 14px; margin-bottom: 16px; }

.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 14px; font-weight: 700; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    z-index: 100;
  }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; }
  .sidebar-close { display: block; }
  .topbar-menu-btn { display: flex; }

  .app-view { padding: 16px; }
  .board-container { flex-direction: column; }
  .board-column { width: 100%; }
  .task-detail-grid { grid-template-columns: 1fr; }
  .task-detail-sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 16px; margin-top: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .modal { width: 96%; max-height: 96vh; }
  .calendar-grid { font-size: 11px; }
  .calendar-cell { min-height: 60px; padding: 4px; }
  .notif-panel { width: 300px; right: 8px; }
}
