/* ==========================================================================
   DESIGN SYSTEM - ASSISTENTE DE PRODUTIVIDADE (ANTIGRAVITY STYLING)
   ========================================================================== */

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

:root {
  /* Cores Principais - Slate Corporativo Premium */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-glass-card: #ffffff;
  --border-glass: #e2e8f0;
  --border-glass-focus: #cbd5e1;

  /* Cores de Destaque Sóbrias e Corporativas (Business Slate & Navy) */
  --accent-cyan: #0284c7; /* Sky Blue escuro */
  --accent-cyan-glow: rgba(2, 132, 199, 0.08);
  --accent-indigo: #0f172a; /* Deep Slate Charcoal para marca principal */
  --accent-indigo-glow: rgba(15, 23, 42, 0.08);
  --accent-purple: #475569; /* Slate Gray */
  --accent-purple-glow: rgba(71, 85, 105, 0.08);
  --accent-emerald: #0f766e; /* Teal Sóbrio para Concluídos/Sucesso */
  --accent-emerald-glow: rgba(15, 118, 110, 0.08);
  --accent-rose: #991b1b; /* Vermelho Escuro Sóbrio para Alertas */
  --accent-rose-glow: rgba(153, 27, 27, 0.08);
  --accent-amber: #b45309; /* Âmbar Sóbrio para Pendências */
  --accent-amber-glow: rgba(180, 83, 9, 0.08);

  /* Texto - Corporativo Premium */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Fontes e Tipografia */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  /* Efeitos e Bordas Nítidas - Business Grid */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-circle: 50%;
  --shadow-glow: none;
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);

  --transition-smooth: all 0.2s ease-in-out;
  --transition-bounce: all 0.2s ease-in-out;
}

/* ==========================================================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-indigo) var(--bg-secondary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* ==========================================================================
   ESTILOS DE GLASSMORPHISM & UTILS
   ========================================================================== */

.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo) 50%, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  min-height: 40px;
}

.glow-btn:hover {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.glow-btn:active {
  background: #0f172a;
}

.text-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  min-height: 48px;
}

.text-btn:hover {
  border-color: var(--accent-indigo);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Visually Hidden */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* ==========================================================================
   LAYOUT GERAL DA APLICAÇÃO (SPA)
   ========================================================================== */

#app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  min-height: 100vh;
}

/* Header / Top Navigation Bar */
.top-nav {
  height: 115px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 3rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.top-nav-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.top-nav-row.first-row {
  justify-content: space-between;
  height: 50px;
}

.top-nav-row.second-row {
  justify-content: flex-start;
  height: 48px;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.25rem;
  align-items: flex-end;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: #0f172a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.top-date-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Horizontal Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100%;
  width: 100%;
}

.nav-item[data-page="access"] {
  margin-left: auto;
}

.nav-item button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.nav-item button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-item button:hover {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
}

.nav-item.active button {
  background: transparent;
  border-bottom: 2px solid var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 0;
}

/* User Profile (Horizontal) */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--accent-indigo);
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  max-width: 150px;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.logout-btn:hover {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.logout-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Conteúdo Principal */
.main-content {
  flex-grow: 1;
  margin-left: 0;
  margin-top: 115px; /* Altura do top header de duas linhas */
  padding: 2.5rem 3rem;
  min-height: calc(100vh - 115px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   TELA DE LOGIN E DIAGNÓSTICO
   ========================================================================== */

#login-screen, #diagnostic-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 1000;
  padding: 1.5rem;
}

.login-card, .diagnostic-card {
  width: 480px;
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card h2, .diagnostic-card h2 {
  font-size: 2rem;
  margin: 1.5rem 0 0.5rem 0;
}

.login-desc, .diagnostic-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.g-signin-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.divider {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin: 1rem 0 2rem 0;
}

.divider::before, .divider::after {
  content: "";
  flex-grow: 1;
  background: var(--border-glass);
  height: 1px;
}

.divider::before { margin-right: 1rem; }
.divider::after { margin-left: 1rem; }

.mock-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.mock-input:focus {
  border-color: var(--accent-indigo);
  background: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   PÁGINAS DO APP - COMPONENTES REUTILIZÁVEIS
   ========================================================================== */

.page {
  display: none;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease-out;
}

.page.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title-area h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-title-area p {
  color: var(--text-secondary);
}

/* Grid Geral Dashboard */
.db-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, var(--accent-indigo));
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, var(--accent-indigo));
}

.stat-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 0.15rem;
}

/* Layout Secundário Dashboard */
.db-grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .db-grid-main {
    grid-template-columns: 1fr;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   TELA DE TAREFAS - DIÁRIO / CALENDÁRIO / GERADOR
   ========================================================================== */

.tasks-ctrls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.date-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 0.25rem;
}

.date-selector select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.view-toggle button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  min-height: auto;
}

.view-toggle button.active {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Calendário Mensal */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem;
}

.calendar-day {
  min-height: 120px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-card);
}

.calendar-day.empty {
  opacity: 0.25;
  background: transparent;
  pointer-events: none;
}

.calendar-day.today {
  border-color: var(--accent-cyan);
  background: rgba(8, 145, 178, 0.07);
}

.day-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  align-self: flex-end;
}

.calendar-day.today .day-number {
  color: var(--accent-cyan);
}

.day-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 80px;
}

.cal-task-item {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.15);
  border-left: 2px solid var(--task-color, var(--accent-indigo));
  color: #fff;
  transition: var(--transition-smooth);
}

.cal-task-item.completed {
  opacity: 0.5;
  text-decoration: line-through;
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--text-muted);
}

/* Lista Diária de Tarefas */
.daily-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-card {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.task-card:hover {
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-grow: 1;
}

.checkbox-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.task-checkbox {
  width: 24px;
  height: 24px;
  accent-color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.task-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.task-title {
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

.task-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  align-items: center;
}

.project-tag {
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  color: #fff;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.task-card:hover .task-actions {
  opacity: 1;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.action-btn.delete:hover {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   KANBAN DE PROJETOS E DEMAIS LISTAS
   ========================================================================== */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 400px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--col-color, var(--accent-indigo));
}

.column-header h4 {
  font-weight: 700;
  font-size: 1.05rem;
}

.column-count {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kanban-cards-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.kanban-card {
  padding: 1.25rem;
  cursor: grab;
  transition: var(--transition-smooth);
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-indigo);
}

/* CRUD Acesso */
.access-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.access-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  transition: var(--transition-smooth);
}

.access-email {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.access-email::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   MODAIS, FORMULÁRIOS E DIALOGS
   ========================================================================== */

.slide-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-panel-backdrop.active {
  display: block;
  opacity: 1;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 480px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 600;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@media (max-width: 500px) {
  .slide-panel {
    width: 100vw;
  }
}

.slide-panel.active {
  right: 0;
}

.panel-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-panel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.close-panel-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  outline: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.01);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-indigo);
  background: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.weekday-selector {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.weekday-checkbox-wrapper {
  position: relative;
}

.weekday-checkbox-wrapper input {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
}

.weekday-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.weekday-checkbox-wrapper input:checked + .weekday-label {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

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

/* Modal flutuante de alertas */
.alert-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
}

.alert-toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--toast-color, var(--accent-indigo));
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  max-width: 450px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-smooth);
  color: var(--text-primary);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.alert-toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  font-weight: 700;
}

/* SVG Chart */
.stat-chart-svg {
  width: 100%;
  height: 200px;
  margin-top: 1rem;
}

/* Glassmorphic Table Styles */
.modern-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem; /* Tamanho de fonte reduzido para visual compacto */
  line-height: 1.35;
}

.modern-table th {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.6rem 1rem; /* Padding vertical reduzido para compactação */
  border-bottom: 2px solid var(--border-glass);
}

.modern-table td {
  padding: 0.6rem 1rem; /* Padding vertical reduzido para compactação */
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.modern-table tr {
  transition: var(--transition-smooth);
}

.modern-table tr:hover td {
  background: rgba(99, 102, 241, 0.02);
  color: var(--text-primary);
}

.modern-table tr.completed td {
  text-decoration: line-through;
  opacity: 0.6;
}

.modern-table .badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modern-table .badge-pending {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
}

.modern-table .badge-completed {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
}

.modern-table .btn-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.modern-table .btn-action:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
}

.modern-table .btn-action.toggle-btn:hover {
  color: var(--accent-indigo);
  background: var(--accent-indigo-glow);
}

.modern-table .btn-action.delete-btn:hover {
  color: var(--accent-rose);
  background: var(--accent-rose-glow);
}

/* ==========================================================================
   ESTILOS DE ABAS DE PROJETOS (BUSINESS WORKSPACES UI)
   ========================================================================== */

.projects-tabs-row {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none; /* esconde scrollbar no firefox */
}

.projects-tabs-row::-webkit-scrollbar {
  display: none; /* esconde scrollbar no chrome/safari */
}

.project-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.project-tab-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.project-tab-btn.active-tab {
  background: var(--bg-primary);
  border-color: var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.project-tab-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Botões com fundo preto solicitados pelo usuário */
.btn-black {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.btn-black:hover {
  background: #1c1c1e !important;
  border-color: #1c1c1e !important;
  color: #ffffff !important;
}

/* ==========================================
   ESTILOS: MÓDULO REUNIÕES
   ========================================== */
.meeting-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.meeting-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border-color: var(--border-glass-focus);
}

.meeting-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.meeting-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.meeting-card-actions {
  display: flex;
  gap: 0.35rem;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.meeting-card:hover .meeting-card-actions {
  opacity: 1;
}

.meeting-card-actions .text-btn {
  padding: 0.25rem 0.5rem;
  min-height: 28px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.frequency-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 20px;
  width: fit-content;
}

/* Cores harmônicas e discretas para as frequências */
.frequency-badge.diaria {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.frequency-badge.semanal {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.frequency-badge.bisemanal {
  background: rgba(71, 85, 105, 0.08);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.frequency-badge.mensal {
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.frequency-badge.bimensal {
  background: rgba(180, 83, 9, 0.08);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.frequency-badge.trimestral {
  background: rgba(153, 27, 27, 0.08);
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.meeting-card-obs {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--border-glass-focus);
  white-space: pre-line;
  word-break: break-word;
}
