/* ==========================================================================
   ORBIFY LIFE — AGENDA & CALENDÁRIO PROFISSIONAL
   Estilo Apple Bento / Notion Calendar / Google Calendar Integration
   ========================================================================== */

/* Theme color tokens for Black/Dark and White themes */
:root,
body:not(.dashboard-theme-white) {
  --bg-deep: #0c0c0c;
  --bg-surface: #121212;
  --bg-card: rgb(21 21 21 / 85%);
  --bg-card-hover: rgb(28 28 28 / 95%);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-main: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-bright: #ffffff;
  color-scheme: dark;
}

body.dashboard-theme-white {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgb(252 252 252 / 95%);
  --bg-card-hover: #f1f5f9;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.2);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-bright: #020617;
  color-scheme: light;
}

/* Main Agenda Container */
.agenda-wrapper {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: var(--bg-deep, #0a0b0e);
  color: var(--text-main, #f5f5f5);
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

body.dashboard-theme-white .agenda-wrapper {
  background: #f8fafc;
  color: #0f172a;
}

/* ==========================================================================
   1. TOP AGENDA TOOLBAR / HEADER
   ========================================================================== */
.agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

body.dashboard-theme-white .agenda-toolbar {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Left: Date Navigation */
.agenda-nav-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-width: 300px;
}

.btn-agenda-today {
  justify-self: start;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-agenda-today:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

body.dashboard-theme-white .btn-agenda-today {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.dashboard-theme-white .btn-agenda-today:hover {
  background: rgba(0, 0, 0, 0.08);
}

.agenda-current-title {
  justify-self: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
  white-space: nowrap;
}

body.dashboard-theme-white .agenda-current-title {
  color: #0f172a;
}

.agenda-nav-arrows {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-hover);
}

body.dashboard-theme-white .btn-nav-arrow {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.dashboard-theme-white .btn-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

/* Center: Segmented View Switcher (Mês | Semana | Dia | Lista) */
.agenda-view-switcher {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

body.dashboard-theme-white .agenda-view-switcher {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn-view-tab {
  padding: 0.42rem 0.95rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-view-tab:hover {
  color: var(--text-bright);
}

.btn-view-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dashboard-theme-white .btn-view-tab {
  color: #64748b;
}

body.dashboard-theme-white .btn-view-tab:hover {
  color: #0f172a;
}

body.dashboard-theme-white .btn-view-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Right: Google Calendar & + Novo Button */
.agenda-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-google-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-google-sync.connected {
  border-color: rgba(66, 133, 244, 0.35);
  background: rgba(66, 133, 244, 0.08);
}

.btn-google-sync:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.google-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.google-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

body.dashboard-theme-white .btn-google-sync {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.dashboard-theme-white .btn-google-sync:hover {
  background: #f1f5f9;
}

.btn-add-agenda-event {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--color-life, #a5ff8f);
  color: #0c1a06;
  border-radius: 11px;
  border: none;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(165, 255, 143, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-add-agenda-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(165, 255, 143, 0.4);
  filter: brightness(1.05);
}

.btn-add-agenda-event:active {
  transform: scale(0.98);
}

body.dashboard-theme-white .btn-add-agenda-event {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
}

body.dashboard-theme-white .btn-add-agenda-event:hover {
  background: #166534;
}

/* ==========================================================================
   2. MAIN AGENDA LAYOUT (Calendar Canvas + Right Companion Panel)
   ========================================================================== */
.agenda-content-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.25rem;
  min-height: 0;
}

/* Main Canvas Card */
.agenda-canvas-card {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dashboard-theme-white .agenda-canvas-card {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   3. MONTH VIEW (Apple Bento Grid Calendar)
   ========================================================================== */
.agenda-month-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.agenda-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
}

body.dashboard-theme-white .agenda-weekdays-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.weekday-col {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #737373);
}

body.dashboard-theme-white .weekday-col {
  color: #64748b;
}

/* 7x5 or 7x6 Month Days Grid */
.agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(95px, 1fr);
  gap: 4px;
  flex: 1;
}

.month-day-cell {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.month-day-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dashboard-theme-white .month-day-cell {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
}

body.dashboard-theme-white .month-day-cell:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
}

.month-day-cell.other-month {
  opacity: 0.35;
}

.month-day-cell.selected-day {
  border-color: var(--color-life, #a5ff8f);
  background: rgba(165, 255, 143, 0.03);
}

/* Cabeçalho do dia no mês (Número centralizado) */
.month-cell-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 22px;
  margin-bottom: 2px;
}

.month-day-num {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-main);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

body.dashboard-theme-white .month-day-num {
  color: #1e293b;
}

.month-day-cell.other-month .month-day-num {
  color: var(--text-muted);
  opacity: 0.4;
}

/* Badge de Hoje no Mês (Igual Image 1 do Google Agenda) */
.month-day-num.is-today,
.month-day-cell.is-today .month-day-num {
  background: var(--color-life, #a5ff8f);
  color: #0b0f17;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(165, 255, 143, 0.4);
}

body.dashboard-theme-white .month-day-num.is-today,
body.dashboard-theme-white .month-day-cell.is-today .month-day-num {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.day-cell-quick-add {
  position: absolute;
  right: 0;
  top: 1px;
  opacity: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-bright);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

body.dashboard-theme-white .day-cell-quick-add {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.month-day-cell:hover .day-cell-quick-add {
  opacity: 1;
}

/* Stack de Eventos dentro da célula do mês */
.day-events-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  overflow: hidden;
}

/* Chips de Eventos Estilo Google Calendar (Retangulares e Compactos) */
.month-event-chip {
  display: flex;
  align-items: center;
  gap: 2.5px;
  padding: 1.5px 3.5px;
  border-radius: 3px;
  border-left: 2.5px solid currentColor;
  box-sizing: border-box;
  width: 100%;
  min-height: 16px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
  overflow: hidden;
  text-decoration: none;
}

.month-event-chip:hover {
  transform: translateY(-0.5px);
  filter: brightness(1.12);
}

.month-event-chip .chip-icon {
  font-size: 0.55rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.month-event-chip .chip-google-icon {
  font-size: 0.65rem;
  flex-shrink: 0;
  color: #cbd5e1;
  margin-right: 1.5px;
}

body.dashboard-theme-white .month-event-chip .chip-google-icon {
  color: #475569;
}

.month-event-chip .chip-time {
  font-size: 0.58rem;
  font-weight: 400;
  opacity: 0.88;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.month-event-chip .chip-title {
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  color: inherit;
}

/* Banner para eventos de dia todo / multi-dias (Igual "Rio de Janeiro" no Image 1) */
.month-event-chip.is-allday {
  border-left: none;
  font-weight: 400;
}

/* Indicador '•••' (Três Pontinhos de Mais Eventos igual Image 1) */
.month-more-dots {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  line-height: 1;
  padding: 1px 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.12s ease;
}

.month-more-dots:hover {
  color: var(--text-bright);
}

body.dashboard-theme-white .month-more-dots {
  color: #64748b;
}

body.dashboard-theme-white .month-more-dots:hover {
  color: #0f172a;
}

/* Compatibilidade com classes anteriores */
.agenda-event-pill {
  padding: 0.18rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-left: 2.5px solid transparent;
}

.agenda-event-pill:hover {
  transform: translateX(1px);
  filter: brightness(1.1);
}

/* Event & Category Colors - Dark Theme (Vivid Neon Contrast) */
.cat-verde,
.cat-pessoal {
  background: rgba(165, 255, 143, 0.15);
  color: #a5ff8f;
  border-left-color: #a5ff8f;
}

.cat-azul,
.cat-trabalho,
.cat-google {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-left-color: #38bdf8;
}

.cat-roxo,
.cat-metas {
  background: rgba(192, 132, 252, 0.16);
  color: #c084fc;
  border-left-color: #c084fc;
}

.cat-amarelo,
.cat-financas {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
  border-left-color: #facc15;
}

.cat-vermelho,
.cat-urgente {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border-left-color: #f87171;
}

.cat-laranja {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
  border-left-color: #fb923c;
}

.cat-rosa {
  background: rgba(244, 114, 182, 0.18);
  color: #f472b6;
  border-left-color: #f472b6;
}

.cat-turquesa {
  background: rgba(45, 212, 191, 0.16);
  color: #2dd4bf;
  border-left-color: #2dd4bf;
}

.cat-grafite {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border-left-color: #94a3b8;
}

/* ==========================================================================
   CUSTOM COLOR PICKER (Bolinhas com cores oficiais do Google)
   ========================================================================== */
.custom-color-select-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.custom-color-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.68rem 0.85rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.custom-color-trigger:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #24242b;
}

.custom-color-trigger:focus,
.custom-color-select-wrap.open .custom-color-trigger {
  border-color: var(--color-life, #a5ff8f);
  box-shadow: 0 0 0 2px rgba(165, 255, 143, 0.18);
}

.color-circle-dot {
  width: 13px;
  height: 13px;
  min-width: 13px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.color-trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.color-trigger-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.custom-color-select-wrap.open .color-trigger-chevron {
  transform: rotate(180deg);
}

/* Dropdown list */
.custom-color-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 5px;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: colorDropdownFadeIn 0.15s ease-out;
}

@keyframes colorDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.color-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
  user-select: none;
}

.color-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.color-dropdown-item:hover .color-circle-dot {
  transform: scale(1.15);
}

.color-dropdown-item.selected {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 400;
}

.color-item-text {
  flex: 1;
  font-size: 0.84rem;
  color: #ffffff;
}

.color-item-check {
  font-size: 0.72rem;
  color: var(--color-life, #a5ff8f);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.color-dropdown-item.selected .color-item-check {
  opacity: 1;
}

/* Scrollbar do dropdown */
.custom-color-dropdown::-webkit-scrollbar {
  width: 5px;
}
.custom-color-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* White Theme Support */
body.dashboard-theme-white .custom-color-trigger {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .custom-color-trigger:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

body.dashboard-theme-white .custom-color-trigger:focus,
body.dashboard-theme-white .custom-color-select-wrap.open .custom-color-trigger {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

body.dashboard-theme-white .custom-color-dropdown {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dashboard-theme-white .color-dropdown-item:hover {
  background: #f1f5f9;
}

body.dashboard-theme-white .color-dropdown-item.selected {
  background: #e2e8f0;
}

body.dashboard-theme-white .color-item-text {
  color: #0f172a;
}

body.dashboard-theme-white .color-item-check {
  color: #16a34a;
}

body.dashboard-theme-white .custom-color-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

/* Event & Category Colors - White Theme (Deep, Rich, Crystal-Clear Contrast) */
body.dashboard-theme-white .cat-verde,
body.dashboard-theme-white .cat-pessoal {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-left-color: #16a34a !important;
}

body.dashboard-theme-white .cat-azul,
body.dashboard-theme-white .cat-trabalho,
body.dashboard-theme-white .cat-google {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-left-color: #0284c7 !important;
}

body.dashboard-theme-white .cat-roxo,
body.dashboard-theme-white .cat-metas {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border-left-color: #9333ea !important;
}

body.dashboard-theme-white .cat-amarelo,
body.dashboard-theme-white .cat-financas {
  background: #fef9c3 !important;
  color: #a16207 !important;
  border-left-color: #ca8a04 !important;
}

body.dashboard-theme-white .cat-vermelho,
body.dashboard-theme-white .cat-urgente {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-left-color: #dc2626 !important;
}

body.dashboard-theme-white .cat-laranja {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-left-color: #ea580c !important;
}

body.dashboard-theme-white .cat-rosa {
  background: #fce7f3 !important;
  color: #be185d !important;
  border-left-color: #db2777 !important;
}

body.dashboard-theme-white .cat-turquesa {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  border-left-color: #0d9488 !important;
}

body.dashboard-theme-white .cat-grafite {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-left-color: #64748b !important;
}

.pill-time {
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 500;
}

.pill-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-more-count {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0 0.35rem;
}

/* ==========================================================================
   4. WEEK & DAY TIMELINE VIEWS
   ========================================================================== */
.agenda-timeline-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: -webkit-radial-gradient(white, black);
}

body.dashboard-theme-white .agenda-timeline-view {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* 1. Header Row (Sticky Top) */
.timeline-header-row {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 22, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  min-width: fit-content;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  overflow: hidden;
}

body.dashboard-theme-white .timeline-header-row {
  background: rgba(248, 250, 252, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Canto superior esquerdo alinhado com a coluna de horas */
.timeline-corner-cell {
  width: var(--timeline-time-width, 54px);
  min-width: var(--timeline-time-width, 54px);
  max-width: var(--timeline-time-width, 54px);
  position: sticky;
  left: 0;
  z-index: 30;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  border-top-left-radius: 9px;
}

.timeline-corner-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Cabeçalhos dos dias */
.timeline-day-col-head {
  flex: 1;
  min-width: var(--timeline-day-min-width, 100px);
  padding: 0.6rem 0.3rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timeline-day-col-head:last-child {
  border-right: none;
  border-top-right-radius: 9px;
}

.timeline-day-col-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.dashboard-theme-white .timeline-day-col-head:hover {
  background: rgba(0, 0, 0, 0.02);
}

.timeline-day-col-head .head-weekday {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.timeline-day-col-head .head-day-num {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.timeline-day-col-head.is-today .head-weekday {
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .timeline-day-col-head.is-today .head-weekday {
  color: #16a34a;
}

.timeline-day-col-head.is-today .head-day-num {
  background: var(--color-life, #a5ff8f);
  color: #0b0f17;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(165, 255, 143, 0.35);
}

body.dashboard-theme-white .timeline-day-col-head.is-today .head-day-num {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

/* 2. Corpo do Grid */
.timeline-body-wrapper {
  display: flex;
  position: relative;
  min-width: fit-content;
}

/* Coluna de Horários (Sticky Left) */
.timeline-time-col {
  width: var(--timeline-time-width, 54px);
  min-width: var(--timeline-time-width, 54px);
  max-width: var(--timeline-time-width, 54px);
  position: sticky;
  left: 0;
  z-index: 10;
  background: rgba(18, 22, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-subtle);
  user-select: none;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 9px;
}

body.dashboard-theme-white .timeline-time-col {
  background: rgba(248, 250, 252, 0.96);
  border-right-color: rgba(0, 0, 0, 0.08);
}

.timeline-time-slot {
  height: var(--timeline-hour-height, 56px);
  position: relative;
  box-sizing: border-box;
}

.timeline-time-text {
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

body.dashboard-theme-white .timeline-time-text {
  color: #64748b;
}

/* Grid de Dias */
.timeline-days-grid {
  display: flex;
  flex: 1;
  position: relative;
}

/* Coluna Individual de um Dia */
.timeline-day-column {
  flex: 1;
  min-width: var(--timeline-day-min-width, 100px);
  height: calc(24 * var(--timeline-hour-height, 56px));
  position: relative;
  border-right: 1px solid var(--border-subtle);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% var(--timeline-hour-height, 56px);
  cursor: pointer;
}

.timeline-day-column:last-child {
  border-right: none;
  border-bottom-right-radius: 9px;
}

body.dashboard-theme-white .timeline-day-column {
  border-right-color: rgba(0, 0, 0, 0.06);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.timeline-day-column:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

body.dashboard-theme-white .timeline-day-column:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Linha Indicadora de Horário Atual */
.timeline-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #f87171;
  z-index: 15;
  pointer-events: none;
}

.timeline-now-dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: #f87171;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

/* Cards de Eventos Proporcionais */
.timeline-event-card {
  position: absolute;
  border-radius: 8px;
  padding: 5px 7px;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.14s ease, box-shadow 0.14s ease, z-index 0.1s ease;
  border-left-width: 3.5px;
  border-left-style: solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dashboard-theme-white .timeline-event-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-event-card:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.timeline-event-card.is-short {
  padding: 2px 5px;
  justify-content: center;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.event-card-title {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .event-card-title {
  color: #0f172a;
}


.event-card-time {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-desc {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1.25;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsividade Mobile Específica */
@media (max-width: 768px) {
  :root {
    --timeline-hour-height: 52px;
    --timeline-time-width: 46px;
    --timeline-day-min-width: 84px;
  }

  .timeline-corner-cell {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  .timeline-time-col {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }

  .timeline-time-text {
    right: 5px;
    font-size: 0.68rem;
  }

  .timeline-day-col-head {
    min-width: 84px !important;
    padding: 0.5rem 0.2rem;
  }

  .timeline-day-column {
    min-width: 84px !important;
  }

  .event-card-title {
    font-size: 0.74rem;
  }

  .event-card-time {
    font-size: 0.64rem;
  }
}


/* Single Day Detailed View */
.agenda-single-day-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 0.65rem;
}

.day-slot-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
  cursor: pointer;
}

.day-slot-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

body.dashboard-theme-white .day-slot-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.day-slot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.day-slot-title {
  margin: 0;
  display: flex;
  align-items: center;
}

.day-slot-time {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

body.dashboard-theme-white .day-slot-time {
  color: #64748b;
}

.day-slot-time .day-time-icon {
  font-size: 0.72rem;
  opacity: 0.75;
}

.day-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border-left: 3px solid currentColor;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.day-event-tag:hover {
  filter: brightness(1.08);
}

.day-event-tag .day-google-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
}

.day-event-tag .day-task-icon {
  font-size: 0.78rem;
  flex-shrink: 0;
}

.day-event-tag-title {
  color: inherit;
  word-break: break-word;
}

.day-slot-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.35rem 0 0 0;
  line-height: 1.35;
}

/* ==========================================================================
   5. LIST / AGENDA VIEW
   ========================================================================== */
.agenda-list-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-right: 0.35rem;
}

.list-group-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.1rem;
}

body.dashboard-theme-white .list-group-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.list-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.list-group-date-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.dashboard-theme-white .list-group-date-title {
  color: #0f172a;
}

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

.list-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.85rem;
  transition: all 0.15s ease;
}

.list-event-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .list-event-row {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.04);
}

.list-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.agenda-event-pill.list-pill-google,
.agenda-event-pill.list-pill-orbify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 6px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.list-pill-app-icon {
  width: 15px;
  height: 15px;
  border-radius: 3.5px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Ícone "G" do Google Agenda em todos os eventos (cinza clarinho no tema escuro, cinza escuro no tema claro) */
.chip-google-icon,
.timeline-google-icon,
.day-google-icon,
.list-pill-google i,
.list-pill-google .fa-google {
  color: #cbd5e1 !important;
  transition: color 0.15s ease;
}

body.dashboard-theme-white .chip-google-icon,
body.dashboard-theme-white .timeline-google-icon,
body.dashboard-theme-white .day-google-icon,
body.dashboard-theme-white .list-pill-google i,
body.dashboard-theme-white .list-pill-google .fa-google {
  color: #475569 !important;
}

.list-row-time {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.list-row-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

body.dashboard-theme-white .list-row-title {
  color: #1e293b;
}

.list-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-item-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-item-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-item-action.delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   6. RIGHT COMPANION PANEL (Mini Calendar, Google Sync Card, Quick Tasks)
   ========================================================================== */
.agenda-companion-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
}

/* Mini Calendar Widget */
.mini-calendar-card {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.1rem;
}

body.dashboard-theme-white .mini-calendar-card {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.mini-cal-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-bright);
}

body.dashboard-theme-white .mini-cal-title {
  color: #0f172a;
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.mini-weekday {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 3px 0;
}

.mini-day {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 4px 0;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
}

.mini-day:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mini-day.is-today {
  background: var(--color-life, #a5ff8f);
  color: #000000;
  font-weight: 500;
}

.mini-day.is-selected {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

body.dashboard-theme-white .mini-day.is-today {
  background: #15803d;
  color: #ffffff;
}

/* Google Calendar Integration Box */
.google-sync-widget {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.dashboard-theme-white .google-sync-widget {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

.google-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.google-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.google-brand-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-bright);
}

body.dashboard-theme-white .google-brand-title {
  color: #0f172a;
}

.google-status-badge {
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.google-status-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.google-status-badge.disconnected {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.google-widget-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

body.dashboard-theme-white .google-widget-desc {
  color: #64748b;
}

.btn-google-primary-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 1rem;
  border-radius: 11px;
  border: 1px solid rgba(66, 133, 244, 0.3);
  background: rgba(66, 133, 244, 0.12);
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-google-primary-action:hover {
  background: rgba(66, 133, 244, 0.22);
  border-color: rgba(66, 133, 244, 0.5);
  color: #93c5fd;
}

body.dashboard-theme-white .btn-google-primary-action {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

body.dashboard-theme-white .btn-google-primary-action:hover {
  background: #1d4ed8;
}


/* ==========================================================================
   7. MODALS (Add/Edit Event & Google Calendar Integration)
   ========================================================================== */
.agenda-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-modal-backdrop.hidden {
  display: none !important;
}

.agenda-modal-card {
  width: 100%;
  max-width: 520px;
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  position: relative;
  color-scheme: dark;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dashboard-theme-white .agenda-modal-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

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

.modal-header-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

body.dashboard-theme-white .modal-header-title {
  color: #0f172a;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.dashboard-theme-white .btn-modal-close {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .btn-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Event Type Switcher inside Modal (Evento | Tarefa) */
.modal-type-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

body.dashboard-theme-white .modal-type-switcher {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.btn-modal-type {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #a3a3a3);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-modal-type.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 400;
}

body.dashboard-theme-white .btn-modal-type {
  color: #64748b;
}

body.dashboard-theme-white .btn-modal-type.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Form Fields */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: #d4d4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashboard-theme-white .form-label {
  color: #334155;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.68rem 0.85rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #71717a;
}

.form-select {
  cursor: pointer;
  background-color: #1e1e24;
  color: #ffffff;
  color-scheme: dark;
}

/* Force crystal-clear readable options in dropdown on Windows/Chromium/Firefox */
.form-select option {
  background-color: #18181b !important;
  color: #ffffff !important;
  padding: 8px 12px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-life, #a5ff8f);
  background: #24242a;
}

/* White Theme Form Controls */
body.dashboard-theme-white .form-input,
body.dashboard-theme-white .form-select,
body.dashboard-theme-white .form-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  color-scheme: light;
}

body.dashboard-theme-white .form-input::placeholder,
body.dashboard-theme-white .form-textarea::placeholder {
  color: #94a3b8;
}

body.dashboard-theme-white .form-select {
  background-color: #ffffff;
  color: #0f172a;
  color-scheme: light;
}

body.dashboard-theme-white .form-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.dashboard-theme-white .form-input:focus,
body.dashboard-theme-white .form-select:focus,
body.dashboard-theme-white .form-textarea:focus {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* Date & Time Picker Controls (iPadOS / iOS Safari WebKit Fixes) */
input[type="date"].form-input,
input[type="time"].form-input,
input[type="date"],
input[type="time"] {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
  line-height: normal;
  padding: 0.68rem 0.8rem;
}

/* Alinhamento dos valores internos no Safari iOS / iPadOS */
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  text-align: left !important;
  min-height: 1.25em;
  margin: 0;
  padding: 0;
  width: 100%;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
  display: inline-flex;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  cursor: pointer;
  opacity: 0.9;
  margin-left: auto;
  flex-shrink: 0;
}

body.dashboard-theme-white input[type="date"]::-webkit-calendar-picker-indicator,
body.dashboard-theme-white input[type="time"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
  opacity: 0.65;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-row-2 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Google Modal Features Box */
.google-modal-features-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.dashboard-theme-white .google-modal-features-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.google-modal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #f5f5f5;
}

body.dashboard-theme-white .google-modal-feature-item {
  color: #1e293b;
}

/* Google Modal Multi-Step Views & Checklist */
.gcal-view-section {
  display: flex;
  flex-direction: column;
}

.gcal-view-section.hidden {
  display: none !important;
}

.gcal-checklist-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}

.gcal-cal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.gcal-cal-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

body.dashboard-theme-white .gcal-cal-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .gcal-cal-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.gcal-cal-item.selected {
  border-color: rgba(66, 133, 244, 0.5);
  background: rgba(66, 133, 244, 0.08);
}

body.dashboard-theme-white .gcal-cal-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.gcal-cal-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gcal-cal-item.selected .gcal-cal-checkbox {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

body.dashboard-theme-white .gcal-cal-checkbox {
  border-color: #94a3b8;
  background: #ffffff;
}

body.dashboard-theme-white .gcal-cal-item.selected .gcal-cal-checkbox {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.gcal-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gcal-cal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gcal-cal-name {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashboard-theme-white .gcal-cal-name {
  color: #0f172a;
}

.gcal-cal-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a3a3a3);
  flex-shrink: 0;
}

body.dashboard-theme-white .gcal-cal-badge {
  background: #e2e8f0;
  color: #475569;
}

.gcal-active-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gcal-active-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .gcal-active-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.gcal-alert {
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  margin-bottom: 0.65rem;
}

body.dashboard-theme-white .gcal-alert {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.gcal-alert.info {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.3);
  color: #60a5fa;
}

body.dashboard-theme-white .gcal-alert.info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Checkbox de Sincronização Google no Modal de Compromissos */
.gcal-sync-option {
  margin-top: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.2);
  transition: all 0.15s ease;
}

.gcal-sync-option:hover {
  background: rgba(66, 133, 244, 0.14);
  border-color: rgba(66, 133, 244, 0.35);
}

body.dashboard-theme-white .gcal-sync-option {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.dashboard-theme-white .gcal-sync-option:hover {
  background: #dbeafe;
}

.gcal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
}

body.dashboard-theme-white .gcal-checkbox-label {
  color: #1e293b;
}

.gcal-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #4285f4;
  margin: 0;
}

.gcal-checkbox-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-modal-cancel {
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #d4d4d8;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dashboard-theme-white .btn-modal-cancel {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

body.dashboard-theme-white .btn-modal-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-modal-submit {
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  border: none;
  background: var(--color-life, #a5ff8f);
  color: #0c1a06;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(165, 255, 143, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-modal-submit {
  background: #15803d;
  color: #ffffff;
}

/* Floating Action Button (Mobile FAB) */
.agenda-mobile-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-life, #a5ff8f);
  color: #0c1a06;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 99;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-mobile-fab:active {
  transform: scale(0.92);
}

/* ==========================================================================
   8. MOBILE RESPONSIVENESS (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .agenda-wrapper {
    padding: 0.85rem;
  }

  .agenda-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .agenda-nav-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 0.4rem;
  }

  .agenda-current-title {
    font-size: clamp(0.85rem, 3.8vw, 1.05rem);
    min-width: 0;
    justify-self: center;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .agenda-view-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .btn-view-tab {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
  }

  .agenda-actions-group {
    width: 100%;
    display: flex;
  }

  .btn-add-agenda-event {
    display: none !important;
  }

  .btn-google-sync {
    width: 100%;
    justify-content: center;
    padding: 0.55rem;
    font-size: 0.82rem;
  }

  /* Stack Main Canvas and Companion Panel */
  .agenda-content-layout {
    grid-template-columns: 1fr;
  }

  .agenda-companion-panel {
    display: flex;
    order: 2;
  }

  .agenda-canvas-card {
    order: 1;
    min-height: 480px;
    padding: 0.4rem 0.25rem;
  }

  /* Compact Month Grid for Mobile (Google Calendar Style) */
  .agenda-weekdays-row {
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .weekday-col {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .agenda-month-grid {
    grid-auto-rows: minmax(78px, 1fr);
    gap: 2px;
  }

  .month-day-cell {
    padding: 2px 2px 3px 2px;
    border-radius: 6px;
    gap: 1px;
  }

  .month-cell-header {
    height: 18px;
    margin-bottom: 1px;
    justify-content: center;
  }

  .month-day-num {
    font-size: 0.74rem;
    width: 18px;
    height: 18px;
  }

  .day-cell-quick-add {
    display: none !important;
  }

  .month-event-chip {
    padding: 1px 2px;
    min-height: 14px;
    gap: 1.5px;
    border-radius: 2.5px;
  }

  .month-event-chip .chip-google-icon {
    display: none !important;
  }

  .month-event-chip .chip-title {
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .month-event-chip .chip-time {
    font-size: 0.54rem;
  }

  .month-more-dots {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .pill-time {
    display: none;
  }

  .agenda-mobile-fab {
    display: flex;
  }

  .agenda-modal-card {
    padding: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  .agenda-wrapper {
    padding: 0.5rem 0.25rem;
  }

  .agenda-toolbar {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .agenda-canvas-card {
    padding: 0.35rem 0.15rem;
  }

  .agenda-month-grid {
    gap: 1.5px;
    grid-auto-rows: minmax(74px, 1fr);
  }

  .month-day-cell {
    padding: 1.5px 1.5px 2px 1.5px;
    border-radius: 4px;
  }

  .month-event-chip {
    padding: 1px 2px;
    min-height: 13.5px;
    border-left-width: 2px;
  }

  .month-event-chip .chip-title {
    font-size: 0.60rem;
    letter-spacing: -0.015em;
  }

  .month-event-chip .chip-time {
    font-size: 0.52rem;
  }

  .month-more-dots {
    font-size: 0.64rem;
  }

  .list-event-row {
    padding: 0.55rem 0.65rem;
    gap: 0.5rem;
  }

  .list-row-left {
    gap: 0.5rem;
  }

  .list-row-time {
    font-size: 0.72rem;
  }

  .list-row-title {
    font-size: 0.82rem;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   9. GOOGLE CALENDAR MODAL & CHECKLIST STYLES
   ========================================================================== */
.gcal-view-section {
  display: flex;
  flex-direction: column;
}

.gcal-view-section.hidden {
  display: none !important;
}

.gcal-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.gcal-alert.info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

body.dashboard-theme-white .gcal-alert {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

body.dashboard-theme-white .gcal-alert.info {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.gcal-checklist-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 230px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.gcal-cal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.gcal-cal-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.gcal-cal-item.selected {
  background: rgba(165, 255, 143, 0.07);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .gcal-cal-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .gcal-cal-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.dashboard-theme-white .gcal-cal-item.selected {
  background: #f0fdf4;
  border-color: #16a34a;
}

.gcal-cal-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c1a06;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gcal-cal-item.selected .gcal-cal-checkbox {
  background: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .gcal-cal-checkbox {
  border-color: #94a3b8;
  background: #ffffff;
}

body.dashboard-theme-white .gcal-cal-item.selected .gcal-cal-checkbox {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.gcal-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gcal-cal-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow: hidden;
}

.gcal-cal-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcal-cal-badge {
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

body.dashboard-theme-white .gcal-cal-badge {
  background: #e2e8f0;
  color: #475569;
}

.gcal-active-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
}

.gcal-active-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-bright);
}

body.dashboard-theme-white .gcal-active-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   10. CUSTOM ORBIFY DIALOG & ALERT SYSTEM (Substitui confirm/alert nativos)
   ========================================================================== */
.orbify-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: dialogFadeIn 0.15s ease-out;
}

.orbify-dialog-backdrop.hidden {
  display: none !important;
}

.orbify-dialog-card {
  width: 100%;
  max-width: 440px;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: dialogScaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.dashboard-theme-white .orbify-dialog-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dialog-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.dialog-icon-circle.danger,
.dialog-icon-circle.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.dialog-icon-circle.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.dialog-icon-circle.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.dialog-icon-circle.google {
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.25);
}

.dialog-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bright, #ffffff);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

body.dashboard-theme-white .dialog-title {
  color: #0f172a;
}

.dialog-event-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-bright, #ffffff);
  margin-bottom: 0.65rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashboard-theme-white .dialog-event-preview {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

.dialog-message {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #a3a3a3);
  margin-bottom: 1.25rem;
}

body.dashboard-theme-white .dialog-message {
  color: #475569;
}

.dialog-actions-single {
  width: 100%;
}

.dialog-actions-row {
  display: flex;
  gap: 0.65rem;
  width: 100%;
}

.dialog-actions-row button {
  flex: 1;
}

.dialog-actions-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.btn-dialog-primary {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: var(--color-life, #a5ff8f);
  color: #0b0f17;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-dialog-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-dialog-primary {
  background: #16a34a;
  color: #ffffff;
}

.btn-dialog-danger {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: #ef4444;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-dialog-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-dialog-secondary {
  width: 100%;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright, #ffffff);
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-dialog-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dashboard-theme-white .btn-dialog-secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

body.dashboard-theme-white .btn-dialog-secondary:hover {
  background: #f1f5f9;
}

.btn-dialog-cancel {
  width: 100%;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-secondary, #a3a3a3);
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dialog-cancel:hover {
  color: var(--text-bright, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .btn-dialog-cancel {
  border-color: #e2e8f0;
  color: #64748b;
}

body.dashboard-theme-white .btn-dialog-cancel:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@keyframes dialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}