/* ===========================================================
   QSL ADMIN STYLE — zeni-crea-tu-qsl
   =========================================================== */

/* ===== CAMPOS DE FORMULARIO (MIS DATOS / QSO / COMENTARIOS) ===== */
#miIndicativo,
#miNombre,
#miDireccion,
#miCorreo,
#miLocator,
#qso_indicativo,
#qso_nombre,
#qso_fecha,
#qso_hora,
#qso_banda,
#qso_freq,
#qso_modo,
#rst_env,
#rst_rec,
#comentario,
#comentario2,
#comentario3 {
  background: #f1f5f9 !important;      /* gris claro base */
  color: #0f172a !important;           /* texto oscuro */
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease-in-out;
}

/* ===== ESTADO FOCUS PARA LOS CAMPOS ===== */
#miIndicativo:focus,
#miNombre:focus,
#miDireccion:focus,
#miCorreo:focus,
#miLocator:focus,
#qso_indicativo:focus,
#qso_nombre:focus,
#qso_fecha:focus,
#qso_hora:focus,
#qso_banda:focus,
#qso_freq:focus,
#qso_modo:focus,
#rst_env:focus,
#rst_rec:focus,
#comentario:focus,
#comentario2:focus,
#comentario3:focus {
  outline: none !important;
  border-color: #60a5fa !important;     /* azul suave */
  box-shadow: 0 0 0 3px rgba(59,130,246,.25) !important;
}

/* ====== BOTONES ====== */
button,
.button,
input[type="submit"],
.qsl-button {
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  padding: 8px 14px !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.qsl-button:hover {
  opacity: 0.9 !important;
}

/* ====== SECCIONES / CONTENEDORES GENERALES ====== */
section,
aside,
div {
  box-sizing: border-box;
}

/* ====== CANVAS Y CONTENEDORES ====== */
#qsl-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background-color: #000;
}

/* ====== LABELS ====== */
label {
  font-size: 11px !important;
  color: #b3b3b3 !important;
  margin: 10px 0 5px !important;
  display: block;
}

/* ====== ESTILOS GENERALES ====== */
body {
  background: #000 !important;
  color: #f5f5f5 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ====== ESPACIADO ENTRE INPUTS ====== */
/* (por si algún día cambias el padding de arriba, esto mantiene separación) */
#miIndicativo, #miNombre, #miDireccion, #miCorreo, #miLocator,
#qso_indicativo, #qso_nombre, #qso_fecha, #qso_hora,
#qso_banda, #qso_freq, #qso_modo, #rst_env, #rst_rec,
#comentario, #comentario2, #comentario3 {
  margin-bottom: 12px !important;
}

/* ===========================================================
   TOOLBAR NUEVA (PLANTILLAS Y ACCIONES)
   =========================================================== */

.qsl-toolbar {
  margin: 12px 0;
  padding: 8px 10px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.qsl-input {
  height: 32px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: #ddd;
  font-size: 14px;
}

.qsl-input:focus {
  outline: none;
  border-color: #3a7bff;
}

.button {
  border-radius: 8px;
  height: 32px;
  line-height: 30px;
  padding: 0 12px;
  background: #2b2b2b;
  color: #eaeaea;
  border: 1px solid #3a3a3a;
  cursor: pointer;
}

.button:hover {
  background: #3a3a3a;
}

.button-primary {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.button-primary:hover {
  background: #2575f5;
}

.button-link-delete {
  background: transparent;
  border: none;
  color: #ff6b6b;
}

.button-link-delete:hover {
  color: #ff3b3b;
}

.spacer {
  flex: 1 1 auto;
}

/* Aseguramos orden de la toolbar y la preview */
#qsl-toolbar {
  order: 10 !important;
  position: relative;
  z-index: 2;
}

.qsl-preview {
  order: 20 !important;
  position: relative;
  z-index: 1;
}

/* ===========================================================
   COLOR ESPECIAL PARA LOS COMENTARIOS
   =========================================================== */

/* Input directamente (por si se muestra sin tarjeta) */
#comentario,
#comentario2,
#comentario3 {
  background: #9cc4ff !important;         /* azul claro */
  color: #0f172a !important;
  border-color: #679ae6 !important;       /* mismo azul del borde */
}

/* Tarjeta (div) que envuelve a los comentarios */
label[for="comentario"] + div,
label[for="comentario2"] + div,
label[for="comentario3"] + div {
  background: #9cc4ff !important;         /* azul claro para la tarjeta */
  border: 1px solid #679ae6 !important;   /* mismo azul del borde */
  border-radius: 24px !important;
  padding: 16px !important;
}

/* El input dentro de la tarjeta */
label[for="comentario"] + div input,
label[for="comentario2"] + div input,
label[for="comentario3"] + div input {
  background: transparent !important;
  color: #0f172a !important;
  font-size: 16px !important;
}

/* ====== FIN DEL CSS ====== */

/* Forzar el color de fondo dentro del input de Comentario */
input#comentario,
input#comentario2,
input#comentario3 {
  background-color: #9cc4ff !important;  /* mismo azul que la tarjeta */
  border: 0 !important;
}

/* ===== FORZAR AZUL EN TODOS LOS ELEMENTOS DE COMENTARIOS ===== */

/* Tarjeta que envuelve los inputs */
label[for="comentario"] + div,
label[for="comentario2"] + div,
label[for="comentario3"] + div,
label[for="comentario"] + div *,
label[for="comentario2"] + div *,
label[for="comentario3"] + div * {
  background-color: #9cc4ff !important;   /* azul claro para todo */
  border-color: #679ae6 !important;       /* mismo azul del borde */
}

/* Aseguramos que los inputs no saquen otro color raro */
#comentario,
#comentario2,
#comentario3 {
  background-color: #9cc4ff !important;
  border: 0 !important;
  color: #0f172a !important;
}

/* ===== ÚLTIMO INTENTO: FORZAR COLOR DE LOS CAMPOS DE COMENTARIO ===== */

/* Los propios inputs de comentario, por ID */
input[type="text"]#comentario,
input[type="text"]#comentario2,
input[type="text"]#comentario3 {
  background-color: #9cc4ff !important;   /* azul claro dentro */
  border: 1px solid #679ae6 !important;   /* borde azul */
  border-radius: 14px !important;
  color: #0f172a !important;
}

/* Por si el tema cambia el color usando solo el placeholder */
input[type="text"][placeholder="Comentario"],
input[type="text"][placeholder="Comentario 2"],
input[type="text"][placeholder="Comentario 3"] {
  background-color: #9cc4ff !important;
  border: 1px solid #679ae6 !important;
  border-radius: 14px !important;
  color: #0f172a !important;
}

/* ===== UNIFICAR ESTILO DE COMENTARIOS CON MIS DATOS ===== */
#comentario,
#comentario2,
#comentario3 {
  background: #bfdbfe !important;        /* mismo azul claro que #miLocator */
  color: #0f172a !important;             /* mismo color de texto */
  border: 1px solid #60a5fa !important;  /* mismo azul medio del borde */
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease-in-out;
}

