/* Backdrop para centrar la tarjeta en la pantalla */
.form-container {
  min-height: 100vh;
  background-color: var(--bg-page, #F5F4F1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

/* Tarjeta estilo diálogo Google Calendar */
.dialog-card {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(15, 13, 10, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Cabecera del Diálogo */
.dialog-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 4px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted, #78716C);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-close:hover {
  background-color: var(--bg-page, #F5F4F1);
  color: var(--text-primary, #0F0D0A);
}

/* Cuerpo del Diálogo */
.dialog-body {
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input de Título Borderless */
.title-input-container {
  position: relative;
}

.title-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(15, 13, 10, 0.08);
  font-size: 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 8px 0;
  outline: none;
  color: var(--text-primary, #0F0D0A);
  transition: border-color 0.2s;
}

.title-input:focus {
  border-color: var(--gold-luxe, #C9973C);
}

/* Pestañas / Tipo de Evento */
.tab-selector {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: var(--bg-page, #F5F4F1);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #44403C);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tab-btn.active {
  background-color: rgba(201, 151, 60, 0.12);
  color: var(--gold-dark, #A67C28);
}

.tab-btn:hover:not(.active) {
  background-color: rgba(15, 13, 10, 0.05);
}

/* Filas con Icono */
.dialog-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.row-icon {
  font-size: 20px;
  color: var(--text-muted, #78716C);
  margin-top: 10px;
  width: 24px;
  text-align: center;
}

.row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #78716C);
  text-transform: uppercase;
}

/* Time Grid */
.time-grid {
  display: grid;
  grid-template-cols: 1.5fr 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .time-grid {
    grid-template-cols: 1fr;
  }
}

/* Inputs del Diálogo */
.dialog-input, .dialog-select {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 13, 10, 0.14);
  background: #FFFFFF;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.dialog-input:focus, .dialog-select:focus {
  border-color: var(--gold-luxe, #C9973C);
  box-shadow: 0 0 0 3px rgba(201, 151, 60, 0.08);
}

.dialog-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 13, 10, 0.14);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  resize: none;
}

.dialog-textarea:focus {
  border-color: var(--gold-luxe, #C9973C);
}

/* Sección Asistente IA */
.ai-assistant-container {
  background: rgba(201, 151, 60, 0.05);
  border: 1px dashed rgba(201, 151, 60, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-assistant-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(15, 13, 10, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  resize: none;
  box-sizing: border-box;
}

.ai-assistant-textarea:focus {
  border-color: var(--gold-luxe, #C9973C);
}

.ai-assistant-btn {
  background: linear-gradient(135deg, #C9973C, #A67C28);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  align-self: flex-end;
}

/* Pie del Diálogo */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(15, 13, 10, 0.08);
}

.btn-more-options {
  background: none;
  border: none;
  color: var(--gold-dark, #A67C28);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
}

.btn-more-options:hover {
  background-color: var(--bg-page, #F5F4F1);
}

.btn-save {
  background: #0D1B2A;
  color: #FFFFFF;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-save:hover {
  background-color: #1A3047;
}
