/* Reset & Root Variables — Nosso Consultor Visual Identity */
:root {
  /* Branding Colors */
  --brand-primary: #D7EDEF;
  --brand-secondary: #2A323A;
  --brand-accent: #09C1DC;
  --brand-bg: #FFFFFF;
  --brand-surface: #F8FDFD;
  --brand-card-bg: #FFFFFF;
  --brand-input-bg: #FFFFFF;

  --text-main: #2A323A;
  --text-dark: #212121;
  --text-muted: #5A6A78;
  --text-dim: #8C9CAE;
  --text-link: #09C1DC;

  --border-color: #D7EDEF;
  --border-dark: #2A323A;
  --border-focus: #09C1DC;

  --accent-hover: #07A7C0;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;

  /* Base Border Radius strictly set to 4px per brand guidelines */
  --radius-base: 4px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 4px;

  --shadow-light: 0 2px 8px rgba(42, 50, 58, 0.05);
  --shadow-card: 0 4px 16px rgba(42, 50, 58, 0.06);
  --shadow-btn-primary: 0 2px 6px rgba(9, 193, 220, 0.3);
  
  --font-heading: 'Roboto', Arial, 'Helvetica Neue', sans-serif;
  --font-body: 'Roboto', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--brand-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(215, 237, 239, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(9, 193, 220, 0.06) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  padding: 24px 20px;
}

/* App Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header / Branding Bar */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-light);
}

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

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon-box {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1.5px solid rgba(9, 193, 220, 0.4);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-icon-box:hover {
  transform: translateY(-1px);
  border-color: var(--brand-accent);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-secondary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.consultant-tag {
  font-size: 13px;
  color: var(--brand-secondary);
  background: var(--brand-primary);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-secondary);
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-base);
  border: 1px solid var(--brand-primary);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 10px;
}

.tab-button {
  /* Botão secundário estilo marca */
  background: #F1F1F1;
  border: 1px solid transparent;
  color: var(--brand-accent);
  padding: 12px 20px;
  border-radius: var(--radius-base);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.tab-button:hover:not(.disabled) {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}

.tab-button.active {
  background: var(--brand-secondary);
  color: var(--brand-accent);
  border-color: var(--brand-secondary);
}

.tab-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--text-dim);
  background: #F8F8F8;
}

.tab-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-base);
  font-weight: 700;
  text-transform: uppercase;
}

.tab-badge.active {
  background: var(--brand-accent);
  color: #F2F2F2;
}

.tab-badge.upcoming {
  background: rgba(42, 50, 58, 0.08);
  color: var(--text-muted);
}

/* Main Content & Card Styling */
.card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-base);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.card-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-primary);
}

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

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

.card-title h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.btn-templates-modal {
  background: var(--brand-surface);
  border: 1px solid var(--brand-accent);
  color: var(--brand-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-templates-modal i {
  color: var(--brand-accent);
}

.btn-templates-modal:hover {
  background: var(--brand-secondary);
  color: #FFFFFF;
  border-color: var(--brand-secondary);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.2);
}

.btn-templates-modal:hover i {
  color: var(--brand-accent);
}

.templates-header-badge {
  background: rgba(9, 193, 220, 0.15);
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.btn-templates-modal:hover .templates-header-badge {
  background: var(--brand-accent);
  color: #FFFFFF;
}

.icon-glow {
  color: var(--brand-accent);
  font-size: 22px;
}

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

/* Seção de Templates Expansível / Oculta por Padrão */
.template-wrapper {
  background: var(--brand-surface);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-base);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.toggle-templates-header {
  width: 100%;
  padding: 14px 18px;
  background: #F4FBFD;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease;
}

.toggle-templates-header:hover {
  background: var(--brand-primary);
}

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

.toggle-templates-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.template-count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-accent);
  background: rgba(9, 193, 220, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
}

.toggle-templates-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 600;
}

.toggle-chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.template-collapsible-content {
  padding: 18px;
  border-top: 1px solid var(--brand-primary);
  background: #FAFAFA;
}

/* Grid de Cards de Templates Bonitos */
.template-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.template-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.template-card:hover {
  border-color: var(--brand-accent);
  box-shadow: 0 6px 20px rgba(9, 193, 220, 0.15);
  transform: translateY(-2px);
}

.template-card.active {
  border-color: var(--brand-secondary);
  background: #F4FBFD;
  box-shadow: 0 0 0 2px var(--brand-secondary);
}

.template-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.template-card-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.template-card-full-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
  white-space: normal;
}

.template-card-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.template-card-tag {
  background: #F1F5F9;
  color: var(--brand-secondary);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.template-card-tag i {
  color: var(--brand-accent);
}

.template-card-email-tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

.template-card:hover .template-card-action {
  color: var(--brand-secondary);
}

/* Form Layout */
.schedule-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

label i {
  color: var(--brand-accent);
}

/* Campos de Entrada (Input): Cantos retos 0px, fundo transparente/branco, texto #212121 */
input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid #C4E3E7;
  border-radius: 0px; /* Cantos retos 0px conforme especificação */
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(9, 193, 220, 0.2);
}

/* Presets - Botões Secundários: Fundo #F1F1F1, Texto #09C1DC, Radius 4px, sem sombra */
.title-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

.preset-btn {
  background: #F1F1F1;
  border: 1px solid transparent;
  color: var(--brand-accent);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.preset-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}

/* Presets de Duração e Botões Rápido (30, 45, 60, 90, 120 min) */
.duration-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.duration-btn {
  background: #F1F1F1;
  border: 1px solid transparent;
  color: var(--brand-accent);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.duration-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}

.duration-btn.active {
  background: var(--brand-secondary);
  color: var(--brand-accent);
  border-color: var(--brand-secondary);
}

/* Input com Seta de Dropdown Customizado */
.custom-dropdown-container {
  position: relative;
}

.input-with-arrow {
  position: relative;
  display: flex;
  align-items: center;
}

.input-arrow-icon {
  position: absolute;
  right: 12px;
  color: var(--brand-accent);
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.input-with-arrow input:focus + .input-arrow-icon {
  transform: rotate(180deg);
}

/* Menu Dropdown de Sugestões de Horários */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background: #FFFFFF;
  border: 1px solid var(--brand-primary);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.custom-dropdown-menu.hidden {
  display: none;
}

.time-dropdown-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid #F1F1F1;
  transition: background 0.15s ease;
}

.time-dropdown-item:last-child {
  border-bottom: none;
}

.time-dropdown-item:hover,
.time-dropdown-item.active {
  background: #E8F7F9;
  color: var(--brand-secondary);
  font-weight: 600;
}

.time-val i {
  color: var(--brand-accent);
  margin-right: 6px;
}

.time-conflict-tag {
  font-size: 11px;
  color: var(--accent-amber);
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modal de Templates Dialog Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 37, 64, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 20px 24px;
  background: #F4FBFD;
  border-bottom: 1px solid var(--brand-primary);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.modal-title-group i {
  font-size: 24px;
  color: var(--brand-accent);
  margin-top: 2px;
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 4px;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(10, 37, 64, 0.08);
  color: var(--brand-secondary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  background: #FAFAFA;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Botões Primários: Fundo #09C1DC, Texto #F2F2F2, Radius 4px, Box Shadow leve */
.btn-primary {
  background: var(--brand-accent);
  color: #F2F2F2;
  border: none;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-btn-primary);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(9, 193, 220, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Result Card & Alerts */
.result-card {
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none !important;
}

.alert-box {
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-box.success {
  background: #E8F8F5;
  border: 1px solid var(--accent-emerald);
}

.alert-box.info {
  background: var(--brand-surface);
  border: 1px solid var(--brand-accent);
}

.alert-box.warning {
  background: #FFFBEB;
  border: 1px solid var(--accent-amber);
}

.alert-box.error {
  background: #FDF2F2;
  border: 1px solid var(--accent-red);
}

.alert-box.success-subtle {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 12px 16px;
  font-size: 13px;
  color: #065F46;
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.alert-box.success .alert-title { color: #065F46; }
.alert-box.info .alert-title { color: var(--brand-secondary); }
.alert-box.warning .alert-title { color: #B45309; }
.alert-box.error .alert-title { color: #991B1B; }

.alert-details {
  font-size: 14px;
  color: var(--text-main);
}

a {
  color: var(--text-link);
}

.direct-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: #F2F2F2;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: var(--shadow-btn-primary);
  transition: all 0.2s ease;
}

.direct-link-btn:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

/* Placeholder Tabs */
.placeholder-card {
  text-align: center;
  padding: 60px 20px;
  background: var(--brand-surface);
}

.placeholder-icon {
  font-size: 48px;
  color: var(--brand-accent);
  margin-bottom: 16px;
}

.placeholder-card h3 {
  font-size: 20px;
  color: var(--brand-secondary);
  margin-bottom: 8px;
}

.placeholder-card p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Layout Agendador: Formulário na Esquerda + Gaveta de Compromissos na Direita */
.agendador-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
}

.form-main-col {
  display: flex;
  flex-direction: column;
}

.weekday-inline {
  color: var(--brand-accent);
  font-weight: 600;
  margin-left: 4px;
}

/* Gaveta Lateral de Compromissos no Google Calendar */
.agenda-drawer-box {
  background: var(--brand-surface);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-base);
  padding: 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 24px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--brand-primary);
}

.agenda-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.drawer-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-secondary);
  white-space: nowrap;
  line-height: 1.2;
}

.agenda-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(9, 193, 220, 0.12);
  color: var(--brand-accent);
  padding: 2px 8px;
  border-radius: var(--radius-base);
  white-space: nowrap;
}

.drawer-sub-header {
  font-size: 12px;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--brand-primary);
}

.day-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 2px;
}

.agenda-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #D7EDEF;
  border-radius: var(--radius-base);
  padding: 10px 12px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.agenda-item:hover {
  border-color: var(--brand-accent);
}

.agenda-item.preview-item {
  border-left: 4px solid var(--brand-accent);
  background: #F0FBFD;
  border-color: #B5E9F0;
}

.agenda-item.preview-item.conflict {
  border-left: 4px solid var(--accent-amber);
  background: #FFFBEB;
  border-color: #FCD34D;
}

.agenda-item-time {
  font-weight: 700;
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.agenda-item.preview-item.conflict .agenda-item-time {
  color: #B45309;
}

.agenda-item-title {
  color: var(--brand-secondary);
  font-weight: 500;
  word-break: break-word;
  line-height: 1.4;
  display: block;
}

/* Bolinhas Coloridas em Tons Pastéis de Identificação das Agendas */
.cal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.cal-badge-p {
  background-color: #FEF08A; /* Amarelo Pastel */
  color: #854D0E;
  border: 1px solid #FDE047;
}

.cal-badge-n {
  background-color: #D1FAE5; /* Verde Pastel */
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.cal-badge-l {
  background-color: #EDE9FE; /* Roxo Pastel */
  color: #5B21B6;
  border: 1px solid #DDD6FE;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-base);
  margin-left: 8px;
}

.preview-tag.valid {
  background: rgba(9, 193, 220, 0.15);
  color: #078DA1;
}

.preview-tag.conflict {
  background: #FEF3C7;
  color: #B45309;
}

.agenda-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Grade Vertical do Google Calendar (Google Calendar Day View)
   ========================================================================== */
.gcal-schedule-wrapper {
  display: flex;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid var(--brand-primary);
  height: 520px;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Scrollbar estilizado suave */
.gcal-schedule-wrapper::-webkit-scrollbar {
  width: 6px;
}
.gcal-schedule-wrapper::-webkit-scrollbar-track {
  background: #F8FAFC;
}
.gcal-schedule-wrapper::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

/* Eixo de Tempo (Esquerda) */
.gcal-time-axis {
  width: 56px;
  flex-shrink: 0;
  border-right: 1px solid #E2E8F0;
  background: #F8FAFC;
  z-index: 2;
  user-select: none;
}

.gcal-time-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 8px;
  padding-top: 4px;
  box-sizing: border-box;
}

.gcal-time-label span {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  font-family: var(--font-body);
}

/* Canvas dos Eventos (Direita) */
.gcal-events-canvas {
  flex: 1;
  position: relative;
  background: #FFFFFF;
}

/* Linhas de Grade Horizontais (Suporte a 30 em 30 minutos) */
.gcal-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 1;
}

.gcal-grid-line-00 {
  border-bottom: 1px dashed #F1F5F9;
}

.gcal-grid-line-30 {
  border-bottom: 1px solid #E2E8F0;
}

.gcal-grid-line:hover {
  background: rgba(9, 193, 220, 0.12);
}

/* Cards de Eventos (Blocos estilo Google Calendar) */
.gcal-event-card {
  position: absolute;
  border-radius: 6px;
  padding: 6px 10px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 5;
  cursor: pointer;
}

.gcal-event-card:hover {
  transform: translateY(-1px);
  z-index: 10;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.gcal-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  gap: 2px;
}

.gcal-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.gcal-card-icon {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.9;
}

.gcal-card-title {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.gcal-card-time {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.gcal-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Linha de título com a bolinha colorida */
.gcal-card-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  margin-top: 1px;
}

/* Card Alex (Pessoal - P): Amarelo Pastel */
.gcal-card-p {
  background: #FEFCE8 !important;
  border: 1px solid #FDE047 !important;
  border-left: 4px solid #EAB308 !important;
  color: #854D0E !important;
}

.gcal-card-p .gcal-card-title {
  color: #713F12;
}

.gcal-card-p .agenda-item-time {
  color: #A16207;
}

/* Card Nosso Consultor (N): Verde Pastel */
.gcal-card-n {
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-left: 4px solid #10B981 !important;
  color: #065F46 !important;
}

.gcal-card-n .gcal-card-title {
  color: #064E3B;
}

.gcal-card-n .agenda-item-time {
  color: #047857;
}

/* Card Larbor (L): Roxo Pastel */
.gcal-card-l {
  background: #F5F3FF !important;
  border: 1px solid #DDD6FE !important;
  border-left: 4px solid #8B5CF6 !important;
  color: #5B21B6 !important;
}

.gcal-card-l .gcal-card-title {
  color: #4C1D95;
}

.gcal-card-l .agenda-item-time {
  color: #6D28D9;
}

/* Card Prévia Dinâmica */
#proposal-preview-card {
  pointer-events: none;
  z-index: 50 !important;
}

.gcal-card-proposal {
  background: #F0FBFD !important;
  border: 1px solid #B5E9F0 !important;
  border-left: 4px solid var(--brand-accent) !important;
  color: var(--brand-secondary) !important;
  animation: pulsePreview 2s infinite ease-in-out;
}

.gcal-card-proposal .agenda-item-time {
  color: var(--brand-accent);
}

.gcal-card-proposal .gcal-tag {
  background: rgba(9, 193, 220, 0.15);
  color: #078DA1;
}

/* Card Conflito */
.gcal-card-conflict {
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  border-left: 4px solid #F59E0B !important;
  color: #B45309 !important;
  animation: pulseConflict 1.5s infinite ease-in-out;
}

.gcal-card-conflict .agenda-item-time {
  color: #B45309;
}

.gcal-card-conflict .gcal-tag {
  background: #FEF3C7;
  color: #B45309;
}

/* Card de Tarefas (Cinza bem clarinho com visual distinto) */
.hide-gcal-tasks .gcal-card-task {
  display: none !important;
}

.gcal-card-task {
  background: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
  border-left: 4px solid #94A3B8 !important;
  color: #64748B !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  z-index: 3 !important;
}

.gcal-card-task:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
}

.gcal-card-task .gcal-card-title {
  color: #475569 !important;
  font-weight: 500 !important;
}

.gcal-card-task .agenda-item-time {
  color: #64748B !important;
}

.task-badge {
  font-size: 10px;
  font-weight: 700;
  background: #E2E8F0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Botão Toggle de Exibir/Ocultar Tarefas */
.task-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.task-toggle-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.task-toggle-btn input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

.task-toggle-icon {
  font-size: 11px;
  color: #64748B;
}

.task-toggle-text {
  font-size: 11px;
  font-weight: 600;
}

@keyframes pulsePreview {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulseConflict {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--brand-primary);
}

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

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

  .agenda-drawer-box {
    position: static;
  }
}

/* Seção de Templates de Reuniões (Planilha Google Drive) */
.template-section {
  background: var(--brand-surface);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-base);
  padding: 16px;
}

.template-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.template-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(9, 193, 220, 0.12);
  color: var(--brand-accent);
  padding: 2px 8px;
  border-radius: var(--radius-base);
  margin-left: auto;
}

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

.template-card-btn {
  background: #FFFFFF;
  border: 1px solid #D7EDEF;
  border-radius: var(--radius-base);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
  outline: none;
}

.template-card-btn:hover {
  border-color: var(--brand-accent);
  background: #F0FBFD;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(9, 193, 220, 0.15);
}

.template-card-btn.active {
  border-color: var(--brand-accent);
  background: #E6F7F9;
  box-shadow: 0 0 0 2px rgba(9, 193, 220, 0.3);
}

.template-card-client {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.template-loading {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal de Confirmação de Agendamento */
.confirm-modal-container {
  max-width: 580px;
  border-radius: 12px;
  overflow: hidden;
}

.confirm-modal-body {
  padding: 24px;
  background: #FAFAFA;
}

.confirm-summary-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Banner de Título em Destaque */
.confirm-title-banner {
  background: #F8FAFC;
  border-left: 4px solid var(--brand-accent);
  padding: 12px 16px;
  border-radius: 4px 8px 8px 4px;
}

.confirm-hero-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin: 0;
}

/* Linha de Data e Horário juntos */
.confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.confirm-row-icon {
  font-size: 16px;
  color: var(--brand-accent);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(9, 193, 220, 0.1);
  border-radius: 50%;
}

.confirm-datetime-text {
  font-weight: 700;
  color: #1E293B;
  font-size: 14px;
}

/* Linha de Convidados */
.confirm-recipients-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.confirm-recipients-prefix {
  font-weight: 700;
  color: #475569;
  font-size: 13px;
}

.confirm-recipients-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.confirm-recipient-chip {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #3730A3;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Status da Agenda (Vibrante e sintético) */
.confirm-status-container {
  margin-top: 4px;
}

.confirm-status-ok {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.confirm-status-warning {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  color: #92400E;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

/* Observação do Google Meet */
.confirm-meet-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed #CBD5E1;
  margin-top: 2px;
}

.confirm-meet-note i {
  color: #059669;
  font-size: 14px;
}

/* Rodapé e Botões do Modal Perfeitamente Padronizados */
.confirm-modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-confirm-secondary {
  height: 44px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-confirm-secondary:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-confirm-primary {
  height: 44px;
  padding: 0 24px;
  background: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(9, 193, 220, 0.3);
}

.btn-confirm-primary:hover {
  background: #07A4BC;
  border-color: #07A4BC;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(9, 193, 220, 0.4);
}

/* ==========================================
   ESTILOS DE AUTENTICAÇÃO E LOGIN EXCLUSIVO
   ========================================== */

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-email-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-secondary);
}

.btn-logout {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.login-modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(9, 193, 220, 0.3);
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card-header {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  padding: 32px 24px 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand-logo {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--brand-accent);
}

.login-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-card-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--brand-accent);
  font-weight: 500;
}

.login-card-body {
  padding: 28px 24px;
}

.login-instructions p {
  font-size: 13px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.5;
}

.login-error-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.login-error-alert i {
  font-size: 16px;
  color: #DC2626;
  flex-shrink: 0;
}

.google-signin-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-divider {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.login-email-input-group {
  display: flex;
  gap: 8px;
}

.login-email-input-group input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  color: #1E293B;
}

.btn-email-login {
  background: var(--brand-accent);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-email-login:hover {
  background: #07A4BC;
}

.login-card-footer {
  background: #F8FAFC;
  padding: 14px 20px;
  border-top: 1px solid #E2E8F0;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}


