/* ===================================================================
   BRAIN OS | DESIGN SYSTEM
   Inspirado nas diretrizes visuais da pasta 'inspiracoes'
   - Paleta 1: Deep Navy (#0B2D5B), Warm Cream (#F7EBD9), Burnt Orange (#D6652F)
   - Paleta 2: Forest Green (#1E5D3A), Sand Beige (#D9C9A8), Muted Coral (#E07B6B)
   - Paleta 3: Charcoal Black (#14171C), Soft Ice Blue (#BFD8EA), Golden Yellow (#F4C430)
   - Tipografia: Playfair Display / Merriweather + Plus Jakarta Sans / Montserrat
=================================================================== */

:root {
  /* TEMA PADRÃO: WARM EDITORIAL (HARTH COFFEE) */
  --bg-app: #FBF8F3;
  --bg-sidebar: #F4EFE6;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F6F1E8;
  --bg-card-hover: #F2EBE0;

  --color-primary: #D6652F;        /* Burnt Orange */
  --color-primary-hover: #BF5320;
  --color-primary-subtle: rgba(214, 101, 47, 0.12);

  --color-navy: #0B2D5B;           /* Deep Navy */
  --color-navy-subtle: rgba(11, 45, 91, 0.08);

  --text-main: #1C1917;            /* Espresso black */
  --text-muted: #6B635B;
  --text-dim: #9C9388;

  --border-subtle: #E8DFD1;
  --border-strong: #D6C9B5;

  --badge-bg: #EAE2D5;
  --badge-text: #453E38;

  --status-success: #1E5D3A;
  --status-success-bg: rgba(30, 93, 58, 0.12);
  --status-warning: #C07D1B;
  --status-warning-bg: rgba(192, 125, 27, 0.12);
  --status-danger: #C83B3B;
  --status-danger-bg: rgba(200, 59, 59, 0.12);

  --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(35, 25, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(35, 25, 20, 0.07);
  --shadow-lg: 0 12px 30px rgba(35, 25, 20, 0.1);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* TEMA 2: FOREST & SAGE */
[data-theme="forest-sage"] {
  --bg-app: #F5F7F5;
  --bg-sidebar: #E9EFE9;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #EBF2EC;
  --bg-card-hover: #E2ECE3;

  --color-primary: #1E5D3A;        /* Forest Green */
  --color-primary-hover: #15462B;
  --color-primary-subtle: rgba(30, 93, 58, 0.12);

  --color-navy: #2A4436;
  --color-navy-subtle: rgba(42, 68, 54, 0.08);

  --text-main: #142018;
  --text-muted: #57685D;
  --text-dim: #88998E;

  --border-subtle: #D9E4DA;
  --border-strong: #BDD0BF;

  --badge-bg: #DFEADF;
  --badge-text: #213C2A;
}

/* TEMA 3: TOKYO DARK MODE */
[data-theme="tokyo-dark"] {
  --bg-app: #0F1216;
  --bg-sidebar: #151921;
  --bg-surface: #1B212B;
  --bg-surface-subtle: #222936;
  --bg-card-hover: #293242;

  --color-primary: #F4C430;        /* Golden Yellow */
  --color-primary-hover: #DFC02B;
  --color-primary-subtle: rgba(244, 196, 48, 0.15);

  --color-navy: #BFD8EA;           /* Soft Ice Blue */
  --color-navy-subtle: rgba(191, 216, 234, 0.12);

  --text-main: #F3F5F7;
  --text-muted: #9AA7B6;
  --text-dim: #677484;

  --border-subtle: #2A3342;
  --border-strong: #3A475C;

  --badge-bg: #222B38;
  --badge-text: #BFD8EA;

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.55);
}

/* RESET GERAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ESTRUTURA PRINCIPAL */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===================================================================
   SIDEBAR
=================================================================== */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 12px 10px 6px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 3px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--bg-surface);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-primary);
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.nav-badge.success {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
}

.theme-selector-box {
  margin-bottom: 12px;
}

.theme-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-dropdown {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.sync-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.sync-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-success);
}

.sync-indicator.pulse {
  box-shadow: 0 0 0 3px rgba(30, 93, 58, 0.2);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 93, 58, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(30, 93, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 93, 58, 0); }
}

.sync-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sync-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.sync-time {
  font-size: 10px;
  color: var(--text-dim);
}

.sync-btn {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s;
}

.sync-btn:hover {
  transform: rotate(45deg);
}

/* ===================================================================
   TOPBAR
=================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 70px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn, .mobile-close-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-main);
}

.greeting-box .page-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.greeting-box .page-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

.topbar-center {
  flex: 1;
  max-width: 480px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
}

.clear-search-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

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

/* WIDGET RELÓGIO ESTILO NOTION INDIFY */
.clock-widget {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: baseline;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.clock-time {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.5px;
}

.clock-seconds {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.clock-zone {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ===================================================================
   BOTÕES & COMPONENTES COMUNS
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(214, 101, 47, 0.25);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 14.5px;
}

/* PILLS & BADGES */
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-subtle);
}

.pill-tag.success {
  background: var(--status-success-bg);
  color: var(--status-success);
  border-color: transparent;
}

.pill-tag.warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border-color: transparent;
}

.pill-tag.danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: transparent;
}

.pill-tag.highlight {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: transparent;
}

/* CARDS ESTILO EDITORIAL */
.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.editorial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================================
   CONTENT AREA & TABS
=================================================================== */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* SECTION HEADERS */
.section-header-editorial {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.section-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.section-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 4px;
}

.section-actions {
  display: flex;
  gap: 10px;
}

/* ===================================================================
   TAB 1: DASHBOARD
=================================================================== */
/* HERO EDITORIAL (Inspirado no WhatsApp Image 2026-10-21 at 11.29.15.jpeg - Harth Coffee) */
.editorial-hero {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.editorial-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--color-primary-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex-shrink: 0;
  width: 320px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.metric-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* DASHBOARD COLUMNS (25% / 75% Notion layout) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
}

.dash-column-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-column-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CALLOUTS ESTILO NOTION */
.callout-card {
  background: var(--bg-surface-subtle);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.callout-icon {
  font-size: 18px;
}

.callout-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
}

.quick-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.quick-action-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-emoji {
  font-size: 20px;
}

.quick-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-link-list li a {
  display: block;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--transition);
}

.quick-link-list li a:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
  padding-left: 14px;
}

/* ===================================================================
   CALENDÁRIO INTERATIVO & EVENTOS (DASHBOARD HUB)
   =================================================================== */
.calendar-card-dashboard {
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.calendar-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  padding: 3px 6px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.cal-nav-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cal-nav-btn:hover {
  background: var(--bg-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.cal-today-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.cal-today-badge:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 4px 0 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 0;
}

.cal-day-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.cal-day-cell:hover {
  background: var(--bg-surface-subtle);
  color: var(--color-primary);
}

.cal-day-cell.other-month {
  color: var(--text-dim);
  opacity: 0.35;
}

.cal-day-cell.today {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(214, 101, 47, 0.4);
}

.cal-day-cell.selected {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(214, 101, 47, 0.35);
  border: 1px solid var(--color-primary-hover);
}

.cal-event-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 2px;
  transition: var(--transition);
}

.cal-day-cell.selected .cal-event-dot {
  background: #FFFFFF;
}

.cal-event-multi-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.cal-event-multi-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}

.cal-day-cell.selected .cal-event-multi-dots span {
  background: #FFFFFF;
}

.calendar-selected-section {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.cal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-selected-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.cal-count-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.cal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  gap: 5px;
  border: 1px dashed var(--border-strong);
}

.cal-empty-icon {
  font-size: 20px;
  opacity: 0.75;
}

.cal-empty-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* EVENTOS MINI LIST */
.event-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-mini-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  transition: var(--transition);
  gap: 6px;
}

.event-mini-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.event-mini-main {
  flex: 1;
  min-width: 0;
}

.event-mini-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.event-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(11, 45, 91, 0.08);
  color: var(--color-navy);
  padding: 1px 5px;
  border-radius: 4px;
}

.event-cat-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.event-cat-badge.cat-trabalho {
  background: rgba(30, 93, 58, 0.12);
  color: #1E5D3A;
}

.event-cat-badge.cat-estudo {
  background: rgba(11, 45, 91, 0.12);
  color: #0B2D5B;
}

.event-cat-badge.cat-saúde, .event-cat-badge.cat-saude {
  background: rgba(200, 59, 59, 0.12);
  color: #C83B3B;
}

.event-cat-badge.cat-pessoal {
  background: rgba(214, 101, 47, 0.12);
  color: var(--color-primary);
}

.event-cat-badge.cat-importante {
  background: rgba(192, 125, 27, 0.15);
  color: #C07D1B;
}

.event-cat-badge.cat-geral {
  background: var(--border-subtle);
  color: var(--text-muted);
}

.event-mini-name {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
}

.event-mini-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}

.event-mini-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.7;
  transition: var(--transition);
}

.event-mini-item:hover .event-mini-actions {
  opacity: 1;
}

.event-mini-date-badge {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
}

/* CALLOUT TO DO & IMPORTANTE */
.callout-box-warning {
  border-left: 4px solid var(--status-warning);
}

.callout-box-danger {
  border-left: 4px solid var(--status-danger);
}

.todo-interactive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.todo-item:hover {
  background: var(--bg-card-hover);
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--text-dim);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.todo-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
}

.add-todo-inline {
  display: flex;
  gap: 10px;
}

.add-todo-inline input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
}

.add-todo-inline input:focus {
  border-color: var(--color-primary);
}

/* HABITOS PROGRESS IN DASHBOARD */
.habits-progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.progress-bar-wrap {
  flex: 1;
  height: 9px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #E68550);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.progress-pct-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.habits-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.habit-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.habit-chip:hover {
  border-color: var(--color-primary);
  background: var(--bg-surface);
}

.habit-chip.done {
  background: var(--status-success-bg);
  border-color: rgba(30, 93, 58, 0.3);
}

.habit-chip.done .habit-chip-label {
  font-weight: 600;
  color: var(--status-success);
}

.habit-chip-label {
  font-size: 13px;
  font-weight: 500;
}

/* ===================================================================
   TABELAS (CONTROLE DE PONTO & GERAL)
=================================================================== */
.table-responsive {
  overflow-x: auto;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.editorial-table th {
  padding: 12px 14px;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.editorial-table tr:hover td {
  background-color: var(--bg-surface-subtle);
}

.table-date {
  font-weight: 600;
  color: var(--color-navy);
}

.badge-hours-pos {
  color: var(--status-success);
  font-weight: 700;
}

.badge-hours-neg {
  color: var(--status-danger);
  font-weight: 700;
}

/* FILTER PANEL CARD (TAB PONTO) */
.filter-panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-dropdown {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.filter-stats-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  display: flex;
  gap: 6px;
}

.stat-pill.highlight {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.stat-pill-label {
  color: var(--text-muted);
}

.stat-pill-val {
  font-weight: 700;
}

/* ===================================================================
   TAB 3: HÁBITOS & ROTINA
=================================================================== */
.habits-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.habit-section-card {
  display: flex;
  flex-direction: column;
}

.habits-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.habit-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.habit-card-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.habit-card-item.checked {
  background: var(--status-success-bg);
  border-color: rgba(30, 93, 58, 0.25);
}

.habit-card-item.checked .habit-name {
  font-weight: 600;
  color: var(--status-success);
}

.habit-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.habit-name {
  font-size: 14px;
  font-weight: 500;
}

/* ===================================================================
   TAB 4: RECEITAS & MERCADO (HARTH COFFEE STYLE)
=================================================================== */
.sub-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sub-section-title h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--badge-bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.recipes-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.recipe-img-box {
  height: 160px;
  background: linear-gradient(135deg, #FAF0E4, #EFE2CF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.recipe-fav-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}

.recipe-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-course {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.recipe-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.recipe-tags {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* GROCERIES */
.filter-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.grocery-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.grocery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.grocery-item:hover {
  border-color: var(--border-strong);
}

.grocery-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grocery-name {
  font-size: 13.5px;
  font-weight: 600;
}

.grocery-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ===================================================================
   TAB 5: HOBBIES & ENTRETENIMENTO
=================================================================== */
.sub-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.sub-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.sub-tab-btn:hover {
  color: var(--text-main);
}

.sub-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease forwards;
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.game-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.game-meta-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.game-obs {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.rating-badge {
  font-weight: 700;
  color: var(--status-warning);
}

/* MEDIA & BOOKS GRID */
.media-grid, .mangas-grid, .books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.media-card, .book-card, .manga-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.media-card:hover, .book-card:hover, .manga-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.media-title, .book-title, .manga-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

/* ===================================================================
   TAB 6: FINANÇAS & CONTAS
=================================================================== */
.finance-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.finance-kpi-card {
  padding: 22px;
}

.finance-kpi-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finance-kpi-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 6px 0;
}

.finance-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.finance-dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.capul-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}

.capul-note-item {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.capul-note-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.capul-note-item.status-pago {
  border-left-color: #10b981;
}

.capul-note-item.status-vencido {
  border-left-color: #ef4444;
}

.capul-note-item.status-pendente {
  border-left-color: #f59e0b;
}

.capul-note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.capul-note-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.capul-note-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.capul-note-val {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-navy);
  background: var(--color-navy-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.capul-note-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.capul-note-date-row strong {
  color: var(--text-main);
}

.capul-barcode-box {
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.capul-barcode-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.capul-barcode-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.capul-barcode-code {
  font-family: var(--font-mono, 'Courier New', Courier, monospace);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
  user-select: all;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.btn-copy-barcode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-copy-barcode:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(214, 101, 47, 0.25);
}

.btn-copy-barcode:active {
  transform: translateY(0);
}

.btn-copy-barcode.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* ===================================================================
   TAB 7: ESTUDOS & CURSO DE INGLÊS (VOCABULARY FLASHCARDS)
=================================================================== */
.vocab-search-wrap input {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  width: 280px;
}

.vocab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.vocab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.vocab-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.vocab-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.vocab-word {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
}

.vocab-btn-audio {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.vocab-btn-audio:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
}

.vocab-pronounce {
  font-size: 13px;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 12px;
}

.vocab-meaning {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.vocab-example {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-style: italic;
  line-height: 1.45;
  border-left: 2px solid var(--border-strong);
}

.vocab-synonym {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: auto;
}

/* MATÉRIAS FACULDADE */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.subject-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}

.subject-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.subject-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: inline-block;
}

.subject-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.subject-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================================
   TAB 8: METAS & VIAGENS
=================================================================== */
.metas-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.meta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.meta-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.meta-info {
  flex: 1;
}

.meta-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.meta-deadline {
  font-size: 11.5px;
  color: var(--text-dim);
}

.project-dream-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   SEARCH OVERLAY
=================================================================== */
.search-overlay {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--color-primary);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  position: relative;
  z-index: 50;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.search-res-item {
  padding: 12px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.search-res-item:hover {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
}

.search-res-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}

.search-res-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.search-res-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ===================================================================
   MODALS
=================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--color-primary);
  background: var(--bg-surface);
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ===================================================================
   FOOTER
=================================================================== */
.editorial-footer {
  padding: 14px 28px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ===================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
=================================================================== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .editorial-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-metrics {
    width: 100%;
  }
  .finance-dual-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-menu-btn, .mobile-close-btn {
    display: inline-block;
  }
  .topbar-center {
    display: none;
  }
  .content-area {
    padding: 18px;
  }
}

/* ===================================================================
   ADDITIONAL STYLES FOR TRABALHO, ESTUDOS & EDIT/DELETE ACTIONS
=================================================================== */

/* ACTION BUTTONS (EDITAR & EXCLUIR) */
.action-buttons-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-table-action {
  padding: 4px 9px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-table-action.delete {
  color: var(--status-danger);
}

.btn-table-action.delete:hover {
  background: var(--status-danger-bg);
  border-color: var(--status-danger);
}

.btn-table-action.edit {
  color: var(--color-primary);
}

.btn-table-action.edit:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
}

/* EMPTY STATES */
.empty-state-card {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.empty-state-icon {
  font-size: 42px;
  opacity: 0.8;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.empty-state-desc {
  font-size: 13px;
  max-width: 360px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ESTUDOS & FACULDADE CARDS */
.studies-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.study-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.study-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.study-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.study-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
}

.study-meta span {
  display: block;
  margin-top: 4px;
}

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

.study-sub-content {
  animation: fadeIn 0.25s ease forwards;
}

/* ===================================================================
   QUESTIONÁRIO DE RECEITA & VISUALIZADOR COMPLETO (HARTH COFFEE STYLE)
=================================================================== */

.modal-content.modal-lg {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-content textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.modal-content textarea:focus {
  border-color: var(--color-primary);
  background: var(--bg-surface);
}

/* RECIPE CARD ENHANCEMENT FOR CLICKABILITY */
.recipe-card {
  cursor: pointer;
  position: relative;
}

.recipe-card .recipe-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-img-box img {
  transform: scale(1.05);
}

.recipe-clickable-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

/* MODAL DE VISUALIZAÇÃO DA RECEITA (MODAL-RECIPE-VIEW) */
.modal-content.modal-recipe-view {
  max-width: 820px;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recipe-view-hero {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy);
  flex-shrink: 0;
}

.recipe-view-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.2) 0%, rgba(16, 20, 28, 0.85) 100%);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.recipe-view-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  z-index: 10;
}

.recipe-view-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}

.recipe-view-fav-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  z-index: 10;
}

.recipe-view-fav-btn:hover {
  transform: scale(1.1);
}

.recipe-view-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.recipe-view-tags .pill-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.recipe-view-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.recipe-view-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
}

.recipe-view-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.recipe-metric-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recipe-metric-icon {
  font-size: 22px;
}

.recipe-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recipe-metric-value {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
}

.recipe-view-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.recipe-view-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
}

.recipe-view-section-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.recipe-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* CHECKLIST DE INGREDIENTES */
.recipe-ingredients-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-ingr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.recipe-ingr-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.recipe-ingr-item.checked {
  background: var(--status-success-bg);
  border-color: rgba(30, 93, 58, 0.2);
}

.recipe-ingr-item.checked span {
  text-decoration: line-through;
  color: var(--text-dim);
}

.recipe-ingr-item span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
}

/* PASSOS DO MODO DE PREPARO */
.recipe-instructions-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-step-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.recipe-step-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.recipe-step-badge {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.recipe-step-desc {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.55;
  flex: 1;
}

/* DICA DO CHEF CALLOUT */
.recipe-chef-tip-box {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(214, 101, 47, 0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.recipe-chef-tip-box .tip-icon {
  font-size: 20px;
}

.recipe-chef-tip-box strong {
  display: block;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.recipe-chef-tip-box p {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.45;
}

/* RODAPÉ DO VISUALIZADOR */
.recipe-view-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
}

.recipe-view-footer-left {
  display: flex;
  gap: 10px;
}

@media (max-width: 800px) {
  .recipe-view-columns {
    grid-template-columns: 1fr;
  }
  .recipe-view-metrics-bar {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================================
   HOBBIES & CULTURA - SUBTAB BARS & ENHANCED CARDS
=================================================================== */
.subtab-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 12px;
}

.subtab-action-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.subtab-action-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.subtab-action-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.hobby-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.hobby-author-badge {
  font-size: 12.5px;
  color: var(--text-main);
  background: rgba(214, 101, 47, 0.08);
  border-left: 3px solid var(--color-primary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hobby-author-badge strong {
  color: var(--color-primary);
}

.hobby-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.hobby-ep-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hobby-fields-section {
  animation: fadeIn 0.25s ease-out;
}

/* ===================================================================
   MODAL GRANDE DE ESTUDOS (VISUALIZADOR & BLOCO DE NOTAS DE AULA)
=================================================================== */
.modal-content.modal-study-note-view {
  max-width: 960px;
  width: 92vw;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.study-note-header {
  padding: 24px 28px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.study-note-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.study-note-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.study-note-meta-row {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.study-note-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.study-note-close-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: scale(1.06);
}

.study-note-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* BLOCO INGLÊS NO MODAL */
.study-note-english-box {
  background: rgba(214, 101, 47, 0.06);
  border: 1px solid rgba(214, 101, 47, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.english-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.english-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* CADERNO DIGITAL */
.study-notebook-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-surface);
  min-height: 420px;
}

.study-notebook-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.study-notebook-tabs {
  display: flex;
  gap: 6px;
}

.notebook-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.notebook-tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.study-quick-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tool-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(214, 101, 47, 0.08);
}

.study-notes-textarea {
  width: 100%;
  padding: 20px 22px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  resize: vertical;
  min-height: 340px;
}

.study-notes-textarea:focus {
  background: rgba(255, 255, 255, 0.015);
}

.study-note-edit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
}

.study-save-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--status-success);
}

.study-note-formatted-view {
  padding: 24px 28px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-main);
  min-height: 340px;
}

.study-note-formatted-view p {
  margin-bottom: 12px;
}

.study-note-formatted-view ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.study-note-formatted-view li {
  margin-bottom: 6px;
}

.study-note-formatted-view .note-callout-insight {
  padding: 12px 16px;
  background: rgba(214, 101, 47, 0.08);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.study-note-formatted-view .note-callout-highlight {
  padding: 12px 16px;
  background: rgba(220, 165, 50, 0.1);
  border-left: 3px solid #DCA532;
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.study-note-formatted-view pre {
  background: var(--color-navy);
  color: #E2E8F0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: monospace;
  font-size: 13.5px;
  margin: 14px 0;
}

.study-note-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.study-note-footer-left {
  display: flex;
  gap: 10px;
}

.study-card-note-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  transition: var(--transition);
}

.study-card {
  cursor: pointer;
}

.study-card:hover .study-card-note-hint {
  transform: translateX(4px);
}

.study-note-excerpt {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================================================
   METAS & VIAGENS — CARDS CLICÁVEIS, CHECKLIST E STATUS
=================================================================== */
.metas-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.meta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.meta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.meta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.meta-card:hover::before {
  opacity: 1;
}

.meta-card.done {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.04) 0%, var(--bg-surface) 100%);
}

.meta-card.done::before {
  background: var(--status-success);
  opacity: 1;
}

.meta-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.goal-check-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13px;
  color: transparent;
  padding: 0;
  margin-top: 1px;
}

.goal-check-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  transform: scale(1.08);
}

.goal-check-btn.checked {
  background: var(--status-success);
  border-color: var(--status-success);
  color: #FFFFFF;
}

.meta-card-main {
  flex: 1;
  min-width: 0;
}

.meta-card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.meta-card.done .meta-card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.meta-card-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-card-progress {
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-subtle);
}

.meta-card-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.meta-card-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

[data-theme="tokyo-dark"] .meta-card-progress-bar,
[data-theme="warm-editorial"][class*="dark"] .meta-card-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.meta-card-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.meta-card.done .meta-card-progress-fill {
  background: var(--status-success);
}

.meta-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.meta-card-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-card-hint {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================================
   MURAL DE SONHOS DE VIDA & GRANDES PROJETOS
=================================================================== */
.sonhos-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.sonho-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sonho-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.sonho-card.done {
  border-color: rgba(34, 197, 94, 0.45);
}

.sonho-card-img-wrap {
  height: 200px;
  position: relative;
  background: var(--bg-surface-subtle);
  overflow: hidden;
}

.sonho-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.sonho-card:hover .sonho-card-img {
  transform: scale(1.05);
}

.sonho-card-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(214, 101, 47, 0.12), rgba(220, 165, 50, 0.1));
  color: var(--color-primary);
  font-size: 38px;
}

.sonho-card-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(18, 20, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sonho-card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sonho-card-status-badge.conquistado {
  background: rgba(34, 197, 94, 0.9);
  color: #FFFFFF;
}

.sonho-card-status-badge.em-busca {
  background: rgba(214, 101, 47, 0.9);
  color: #FFFFFF;
}

.sonho-card-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sonho-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.sonho-card-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sonho-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sonho-card-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.sonho-card-meta-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.sonho-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sonho-card-milestones-snippet {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.btn-toggle-sonho {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-toggle-sonho.done {
  background: var(--status-success-bg);
  color: var(--status-success);
  border-color: rgba(34, 197, 94, 0.3);
}

.btn-toggle-sonho.pending {
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-toggle-sonho:hover {
  transform: translateY(-1px);
}

.interactive-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.interactive-step-item:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-strong);
}

.interactive-step-item.checked {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.3);
}

.interactive-step-item.checked .step-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ===================================================================
   HÁBITOS & ROTINAS DINÂMICAS — QUADRO E ITENS EDITÁVEIS
=================================================================== */
.habit-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  gap: 10px;
}

.habit-card-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.habit-card-item.checked {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.25);
}

.habit-card-item.checked .habit-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.habit-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.habit-icon {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.habit-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.habit-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.habit-card-item:hover .habit-item-actions {
  opacity: 1;
}

/* QUADRO DE ROTINAS ESTRUTURADAS */
.rotinas-quadro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.rotina-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.rotina-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
  opacity: 0.8;
}

.rotina-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.rotina-card.all-done::before {
  background: var(--status-success);
}

.rotina-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rotina-card-title-group {
  flex: 1;
}

.rotina-card-title {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.rotina-card-period-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rotina-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.rotina-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rotina-card-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rotina-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13.5px;
}

.rotina-step-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

.rotina-step-item.checked {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.25);
}

.rotina-step-item.checked .rotina-step-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.rotina-step-text {
  flex: 1;
  line-height: 1.4;
  color: var(--text-main);
}

.rotina-card-notes {
  padding: 10px 14px;
  background: rgba(214, 101, 47, 0.06);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

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

.rotina-reset-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.rotina-reset-btn:hover {
  color: var(--color-primary);
}

/* ===================================================================
   ANOTAÇÕES DE TRABALHO & ATAS (LISTA PAGINADA)
=================================================================== */
.work-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.work-note-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.work-note-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.work-note-card:hover::before {
  opacity: 1;
}

.work-note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.work-note-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.work-note-date {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 500;
}

.work-note-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 2px;
}

.work-note-preview {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.work-note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.work-note-read-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.work-note-card:hover .work-note-read-hint {
  transform: translateX(3px);
}

.work-note-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PAGINAÇÃO DE TRABALHO */
.work-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(214, 101, 47, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 8px;
}

.work-note-formatted-body {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  line-height: 1.8;
  font-size: 14.5px;
  color: var(--text-main);
  min-height: 220px;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}

/* ===================================================================
   TOAST NOTIFICATION SYSTEM
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-main);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-success {
  border-left: 4px solid var(--status-success);
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-warning {
  border-left: 4px solid var(--status-warning);
}

.toast-error {
  border-left: 4px solid var(--status-danger);
}

/* ===================================================================
   TAG FILTER CHIPS (TRABALHO & ATAS)
   =================================================================== */
.tag-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.tag-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* Keyboard shortcut hint */
.kbd-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-dim);
  margin-left: 6px;
}

/* ===================================================================
   DIÁRIO PESSOAL PROTEGIDO & ANOTAÇÕES PRIVADAS
=================================================================== */

/* TELA DE BLOQUEIO / GATE DE SEGURANÇA */
.diario-lock-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65vh;
  padding: 30px 16px;
  animation: fadeIn 0.3s ease;
}

.diario-lock-card {
  max-width: 500px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.diario-lock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #ef4444, #8b5cf6);
}

.lock-shield-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 24px rgba(217, 119, 6, 0.2);
}

.lock-shield-icon .lock-emoji {
  font-size: 36px;
  z-index: 1;
}

.lock-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--color-primary);
  opacity: 0.35;
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  margin-bottom: 12px;
}

.lock-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.lock-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
  padding: 0 10px;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lock-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lock-input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.lock-input-icon {
  font-size: 18px;
  margin-right: 10px;
  opacity: 0.7;
}

.lock-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-main);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.lock-input-group input::placeholder {
  color: var(--text-dim);
  font-size: 13.5px;
}

.btn-toggle-pass {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-toggle-pass:hover {
  opacity: 1;
}

.lock-error-msg {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  animation: lockShake 0.4s ease-in-out;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.lock-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-footer-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 20px;
}

.diario-lock-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  animation: fadeIn 0.3s ease;
}

.diario-lock-inline .diario-lock-card {
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* ÁREA DO DIÁRIO & ANOTAÇÕES */
.diario-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.diario-status-pill.locked {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.diario-status-pill.unlocked {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.diario-status-pill.public {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

.diario-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.diario-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diario-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.diario-stat-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diario-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.diario-stat-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.diario-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
}

.diario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.diario-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.diario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.diario-card:hover::before {
  opacity: 1;
}

.diario-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.diario-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diario-mood-badge {
  font-size: 16px;
  background: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.diario-card-date {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 500;
}

.diario-card-title {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 4px;
}

.diario-card-preview {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

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

.diario-word-count {
  font-size: 11.5px;
  color: var(--text-dim);
}

.diario-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.diario-formatted-body {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-main);
  white-space: pre-line;
  padding: 20px 24px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-primary);
  max-height: 55vh;
  overflow-y: auto;
}

/* ===================================================================
   SUB-NAVEGAÇÃO E CARDS DE ANOTAÇÕES PRIVADAS
=================================================================== */

.btn-anotacao-action {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

.btn-anotacao-action:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
}

.diario-subnav-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.diario-tab-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diario-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.diario-pill-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.diario-pill-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.counter-badge {
  font-size: 11px;
  background: var(--bg-surface-subtle);
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}

.diario-pill-btn.active .counter-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.diario-block-section {
  margin-bottom: 36px;
  animation: fadeIn 0.25s ease;
}

.diario-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.diario-block-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.diario-block-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.anotacoes-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.anotacao-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.anotacao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #0284c7;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.anotacao-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #0284c7;
}

.anotacao-card:hover::before {
  opacity: 1;
}

.anotacao-card.priority-urgente::before {
  background: #ef4444;
  opacity: 1;
}

.anotacao-card.priority-importante::before {
  background: #f59e0b;
  opacity: 1;
}

.anotacao-card.priority-concluido {
  opacity: 0.85;
}

.anotacao-card.priority-concluido::before {
  background: #10b981;
  opacity: 1;
}

.anotacao-formatted-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-main);
  white-space: pre-line;
  padding: 20px 24px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  border-left: 3px solid #0284c7;
  max-height: 55vh;
  overflow-y: auto;
}

/* ===================================================================
   CENTRAL DE ANOTAÇÕES NO DASHBOARD (PESSOAL & TRABALHO)
=================================================================== */
.dash-notes-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .dash-notes-split-grid {
    grid-template-columns: 1fr;
  }
}

.dash-notes-subcol {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dash-notes-subcol:hover {
  border-color: var(--border-strong);
}

.dash-notes-subcol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
}

.btn-link-action {
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-link-action:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

.dash-mini-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-mini-note-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.dash-mini-note-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dash-mini-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.dash-mini-note-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.dash-mini-note-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.dash-mini-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

/* ===================================================================
   1. PREVISÃO PREDITIVA DE HORÁRIO DE SAÍDA (PONTO)
=================================================================== */
.ponto-prediction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(214, 101, 47, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(214, 101, 47, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.ponto-prediction-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(214, 101, 47, 0.12);
}

.ponto-prediction-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ponto-prediction-icon {
  font-size: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ponto-prediction-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.ponto-prediction-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.ponto-prediction-badge {
  text-align: right;
  flex-shrink: 0;
}

.ponto-prediction-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.ponto-prediction-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.ponto-form-prediction-box {
  padding: 10px 14px;
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

/* ===================================================================
   2. MODO FOCO / ZEN WRITING
=================================================================== */
body.zen-active {
  background: var(--bg-surface) !important;
}

body.zen-active .sidebar,
body.zen-active .topbar {
  display: none !important;
}

body.zen-active .main-wrapper {
  max-width: 860px;
  margin: 0 auto !important;
  padding: 30px 20px;
  height: 100vh;
  overflow-y: auto;
}

.zen-exit-floating-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 99999;
  display: none;
  transition: var(--transition);
}

body.zen-active .zen-exit-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zen-exit-floating-btn:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger);
  transform: translateY(-1px);
}

/* ===================================================================
   3. BUSCA SPOTLIGHT / COMMAND PALETTE COM NAVEGAÇÃO
=================================================================== */
.search-res-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.search-res-item:hover,
.search-res-item.selected {
  background: var(--bg-surface-subtle);
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary-subtle);
}

/* ===================================================================
   4. EFEITO DE CONFETES CANVAS
=================================================================== */
.confetti-canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
  display: none;
}

/* ===================================================================
   5. ESPELHO DE PONTO PARA IMPRESSÃO FORMAL / SALVAR EM PDF
=================================================================== */
.print-espelho-container {
  display: none;
}

@media print {
  /* Oculta toda a interface do app durante a impressão */
  .app-container,
  .topbar,
  .sidebar,
  .modal-backdrop,
  .toast-container,
  .zen-exit-floating-btn,
  #confettiCanvas {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 15mm !important;
  }

  .print-espelho-container {
    display: block !important;
    width: 100% !important;
  }

  .print-header {
    border-bottom: 2px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .print-header h1 {
    font-size: 16pt;
    margin: 0 0 4px 0;
    text-transform: uppercase;
  }

  .print-header p {
    font-size: 10pt;
    color: #444444;
    margin: 2px 0;
  }

  .print-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    background: #F4F4F5;
    padding: 10px;
    border: 1px solid #CCCCCC;
    font-size: 9.5pt;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 9pt;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #BBBBBB;
    padding: 5px 8px;
    text-align: left;
  }

  .print-table th {
    background: #E4E4E7;
    font-weight: bold;
    text-transform: uppercase;
  }

  .print-table tr:nth-child(even) td {
    background: #FAFAFA;
  }

  .print-summary-box {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 10.5pt;
    font-weight: bold;
    border-top: 1px solid #000000;
    padding-top: 8px;
  }

  .print-signatures {
    margin-top: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
    page-break-inside: avoid;
  }

  .print-signature-line {
    border-top: 1px solid #000000;
    padding-top: 6px;
    font-size: 9.5pt;
  }
}

/* ===================================================================
   6. RESPONSIVIDADE MOBILE COMPLETA E OTIMIZADA (< 768px e < 480px)
=================================================================== */
.sidebar-backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .topbar-right {
    gap: 8px;
  }
  .btn-topbar-action {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ===================================================================
   OTIMIZAÇÃO ULTRA-RESPONSIVA E PREMIUM PARA CELULAR (MOBILE FIRST)
=================================================================== */

@media (max-width: 768px) {
  /* 1. Reset Global & Prevenção de Auto-Zoom no Celular */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    -webkit-text-size-adjust: 100%;
  }

  /* Impede zoom automático invasivo do iOS e Android ao focar em inputs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* 2. Containers Principais Fluidos */
  .app-container {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
  }

  /* O wrapper de conteúdo é .main-wrapper (não .main-content!) */
  .main-wrapper {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  /* 3. Sidebar Oculta Deslizante (Gaveta Mobile) */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(300px, 84vw) !important;
    max-width: 84vw !important;
    height: 100dvh !important;
    z-index: 1000 !important;
    transform: translateX(-100%) !important;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.55) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  /* Botão Hambúrguer e Fechar com área de toque mínima de 44px */
  .mobile-menu-btn, .mobile-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 22px !important;
    border-radius: var(--radius-sm) !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
  }

  /* 4. Topbar Perfeita para Celular */
  .topbar {
    padding: 0 12px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    overflow: hidden !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .topbar-left .page-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }

  .topbar-left .page-subtitle,
  .topbar-left .greeting-box p {
    display: none !important;
  }

  /* Esconde a busca desktop do meio da topbar */
  .topbar-center {
    display: none !important;
  }

  .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .clock-widget {
    padding: 4px 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: var(--radius-pill) !important;
    background: var(--bg-surface-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
  }

  .clock-time {
    font-size: 12.5px !important;
    font-weight: 700 !important;
  }

  .clock-seconds, .clock-zone {
    display: none !important;
  }

  .btn-topbar-label {
    display: none !important;
  }

  /* Botão Bater Ponto elegante e compacto no mobile */
  #btnQuickPonto {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    min-height: 38px !important;
    min-width: 38px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-pill) !important;
  }

  /* Ocultar botões secundários da barra superior no mobile */
  #btnQuickNotaPessoal,
  #btnQuickNotaTrabalho,
  #btnQuickImportante,
  .topbar-right .btn-topbar-action:not(#btnQuickPonto),
  .topbar-right #themeSelect,
  .topbar-right .theme-selector-wrapper {
    display: none !important;
  }

  /* 5. Área de Conteúdo com Rolagem Touch Suave */
  .content-area {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 12px 48px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .tab-pane {
    animation: none !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 6. Hero Banner Editorial Responsivo */
  .editorial-hero {
    flex-direction: column !important;
    padding: 16px 14px !important;
    gap: 14px !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .hero-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .hero-metrics {
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .metric-card {
    padding: 10px 8px !important;
    text-align: center !important;
  }

  .metric-val {
    font-size: 1.25rem !important;
  }

  .metric-label {
    font-size: 11px !important;
  }

  /* 7. Grid da Dashboard em Coluna Única Fluida */
  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-column-side, .dash-column-main {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* Botões Rápidos 'Criar' */
  .quick-btn-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quick-action-btn {
    min-height: 46px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .action-emoji {
    font-size: 16px !important;
  }

  /* Links Rápidos 'Abrir' */
  .quick-link-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .quick-link-list li {
    margin: 0 !important;
  }

  .quick-link-list a {
    display: block !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    background: var(--bg-surface-subtle) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-subtle) !important;
  }

  /* 8. TO DO & IMPORTANTE Otimizados para Toque */
  .todo-interactive-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .todo-item {
    padding: 10px 12px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 10px !important;
    background: var(--bg-surface-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .custom-checkbox {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    cursor: pointer !important;
  }

  .todo-text {
    flex: 1 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .action-buttons-cell {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-table-action {
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 6px 8px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .add-todo-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
    width: 100% !important;
  }

  .add-todo-inline input {
    height: 46px !important;
    font-size: 16px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .add-todo-inline .btn {
    height: 44px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
  }

  /* 9. Calendário da Dashboard no Celular */
  .calendar-card-dashboard {
    padding: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .calendar-weekdays-row {
    padding: 4px 0 6px 0 !important;
  }

  .calendar-weekdays-row span {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .calendar-days-grid {
    gap: 3px !important;
  }

  .cal-day-cell {
    min-height: 32px !important;
    font-size: 12px !important;
  }

  /* 10. Modais Estilo App Mobile (Bottom Sheet) */
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
  }

  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88dvh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
    padding: 20px 16px 28px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .modal-backdrop.open .modal-content {
    transform: translateY(0) !important;
  }

  .modal-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    position: relative !important;
  }

  .modal-title {
    font-size: 17px !important;
  }

  .modal-close-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border-radius: var(--radius-sm) !important;
  }

  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .form-group label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .form-group input, .form-group select, .form-group textarea {
    min-height: 44px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  /* 11. Tabelas com Rolagem Horizontal Touch */
  .table-responsive,
  .table-container,
  .ponto-table-wrapper,
  .work-notes-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    width: 100% !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
  }

  table {
    min-width: 540px !important;
    font-size: 12.5px !important;
  }

  th, td {
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }

  /* 12. Sub-abas com Rolagem Horizontal Touch (Estudos, Hobbies, Culinária) */
  .sub-tabs-bar,
  .tabs-header,
  .hobbies-nav,
  .category-filter-bar,
  .nav-pill-group {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  .sub-tabs-bar::-webkit-scrollbar,
  .tabs-header::-webkit-scrollbar,
  .hobbies-nav::-webkit-scrollbar {
    display: none !important;
  }

  .sub-tab-btn,
  .tab-btn,
  .filter-pill {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    min-height: 40px !important;
    border-radius: var(--radius-pill) !important;
  }

  /* 13. Grids de Conteúdo em 1 Coluna no Celular */
  .cards-grid,
  .recipes-grid,
  .hobbies-grid,
  .finance-dual-layout,
  .work-notes-grid,
  .sonhos-grid,
  .study-notes-grid,
  .dash-notes-split-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .section-header-editorial {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .section-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .section-actions .btn {
    flex: 1 1 auto !important;
    min-height: 42px !important;
  }

  .ponto-prediction-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .ponto-prediction-badge {
    text-align: left !important;
    width: 100% !important;
    padding-top: 8px !important;
    border-top: 1px dashed var(--border-subtle) !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 19px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }

  .quick-btn-grid {
    grid-template-columns: 1fr !important;
  }

  .quick-action-btn {
    min-height: 48px !important;
    font-size: 13.5px !important;
  }

  .metric-val {
    font-size: 1.15rem !important;
  }
}

/* ==============================================================================
   ESTILOS: TELA DE LOGIN & PORTÃO DE ENTRADA DO WORKSPACE
   ============================================================================== */

.login-screen-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: var(--bg-main, #fbf7ee);
  background-image: 
    radial-gradient(at 0% 0%, rgba(214, 101, 47, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(42, 90, 80, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(224, 142, 97, 0.05) 0px, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.login-card-container {
  width: 100%;
  max-width: 440px;
  margin: auto;
  animation: loginFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 18px);
  padding: 38px 34px 30px;
  box-shadow: 
    0 16px 36px -12px rgba(44, 30, 20, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(214, 101, 47, 0.14) 0%, rgba(214, 101, 47, 0.04) 100%);
  border: 1px solid rgba(214, 101, 47, 0.25);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(214, 101, 47, 0.1);
}

.login-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main, #242220);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted, #736d65);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main, #242220);
  letter-spacing: 0.2px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.65;
  user-select: none;
}

.login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 42px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1px solid var(--border-color, #d4cbbe);
  border-radius: var(--radius-md, 10px);
  background-color: #ffffff !important;
  color: #111827 !important; /* LETRAS PRETAS */
  -webkit-text-fill-color: #111827 !important; /* Força letras pretas no Chrome/Safari/Edge/Mobile */
  caret-color: #111827 !important; /* Cursor de digitação preto */
  transition: all 0.2s ease;
  font-family: inherit;
}

.login-input::placeholder {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  opacity: 1 !important;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-primary, #d6652f);
  box-shadow: 0 0 0 3px rgba(214, 101, 47, 0.18);
  background-color: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

/* Garante letras pretas mesmo com preenchimento automático do navegador */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover, 
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
  -webkit-text-fill-color: #111827 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
  color: #111827 !important;
}

.login-submit-btn {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md, 10px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(214, 101, 47, 0.28);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.login-alert {
  padding: 11px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 12.5px;
  line-height: 1.4;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #b91c1c;
  animation: shakeAlert 0.3s ease;
}

[data-theme="tokyo-dark"] .login-alert {
  background-color: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  text-align: center;
}

.login-security-notice {
  font-size: 11.5px;
  color: var(--text-muted, #736d65);
  margin: 0;
  line-height: 1.5;
}

/* ==============================================================================
   ESTILOS: CHIP DE USUÁRIO & SESSÃO (SIDEBAR E TOPBAR)
   ============================================================================== */

.user-session-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary, #d6652f) 0%, #ab481b 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(214, 101, 47, 0.25);
}

.user-session-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-session-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main, #242220);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-session-role {
  font-size: 10.5px;
  color: var(--color-primary, #d6652f);
  font-weight: 600;
}

.btn-user-logout {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted, #736d65);
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-user-logout:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.2);
}

/* TOPBAR BADGE */
.topbar-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 6px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  margin-left: 4px;
}

.user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary, #d6652f);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #242220);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-topbar-logout {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #736d65);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-topbar-logout:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

/* ==============================================================================
   ESTILOS: ABA DE ADMINISTRAÇÃO DE USUÁRIOS
   ============================================================================== */

.admin-header-card {
  position: relative;
  overflow: hidden;
}

.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-badge-top {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 3px 10px;
  border-radius: 16px;
  margin-bottom: 8px;
}

.admin-page-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main, #242220);
  margin: 0 0 6px 0;
}

.admin-page-subtitle {
  font-size: 13px;
  color: var(--text-muted, #736d65);
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius-md, 10px);
}

[data-theme="tokyo-dark"] .admin-stat-card {
  background: rgba(255, 255, 255, 0.03);
}

.admin-stat-icon {
  font-size: 24px;
}

.admin-stat-content {
  display: flex;
  flex-direction: column;
}

.admin-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #242220);
  line-height: 1.2;
}

.admin-stat-lbl {
  font-size: 11px;
  color: var(--text-muted, #736d65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TABELA ADMIN */
.admin-table-card {
  padding: 24px 28px;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main, #242220);
  margin: 0;
}

.admin-security-pill {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-users-table th {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #736d65);
  border-bottom: 2px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.admin-users-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  color: var(--text-main, #242220);
  vertical-align: middle;
}

.admin-users-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="tokyo-dark"] .admin-users-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.user-cell-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary, #d6652f);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-cell-name {
  font-weight: 600;
  color: var(--text-main, #242220);
}

.user-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.user-badge-role.role-admin {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.user-badge-role.role-user {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="tokyo-dark"] .user-badge-role.role-admin {
  color: #fbbf24;
}

[data-theme="tokyo-dark"] .user-badge-role.role-user {
  color: #60a5fa;
}

.table-actions-cell {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-table-action {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #242220);
}

.btn-table-action:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}

.btn-table-action.delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

.admin-table-footer-notice {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: var(--radius-md, 8px);
  font-size: 11.5px;
  color: var(--text-muted, #736d65);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .admin-header-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-header-actions {
    width: 100%;
  }
  .admin-header-actions .btn {
    flex: 1;
  }
  .topbar-user-badge .user-chip-name {
    display: none;
  }
}




