/* === KDT Engage - Estilo Dark / Semi-Oscuro === */

/* Contenedor principal */
.kdt-wrapper {
  border: 1px solid #2a2f38;
  border-radius: 12px;
  padding: 12px;
  background: #16151d;
  color: #e5e7eb;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  max-width: 100%;
  box-sizing: border-box;
}

/* Formulario */
.kdt-form { 
  margin-bottom: 16px; 
}

.kdt-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f3f4f6;
  font-size: 14px;
}

.kdt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #374151;
}

.kdt-guest { color: #9ca3af; }

#kdt-text {
  width: 100%;
  min-height: 80px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #111318;
  color: #f9fafb;
  padding: 10px;
  resize: vertical;
  font-size: 14px;
  box-sizing: border-box;
}
#kdt-text::placeholder { color: #6b7280; }

.kdt-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 8px; 
}

.kdt-btn {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 14px;
}
.kdt-btn:hover {
  background: linear-gradient(145deg, #1e3a8a, #1d4ed8);
  transform: translateY(-1px);
}

.kdt-hint {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
}

/* Lista de comentarios */
.kdt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kdt-item {
  border: 1px solid #2f3540;
  border-radius: 10px;
  padding: 10px;
  background: #23272f;
  transition: background 0.2s;
  box-sizing: border-box;
}
.kdt-item:hover { background: #2a2f38; }

.kdt-head { 
  display: flex; 
  align-items: flex-start;
  gap: 8px; 
  flex-wrap: wrap;
}
.kdt-meta { flex: 1; min-width: 0; }
.kdt-author { 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  color: #fff; 
  font-size: 14px;
  flex-wrap: wrap;
}
.kdt-date { 
  color: #9ca3af; 
  font-size: 11px; 
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kdt-edited {
  color: #60a5fa;
  font-size: 10px;
  font-style: italic;
  font-weight: 500;
}
.kdt-pin { font-size: 12px; color: #60a5fa; }

.kdt-content {
  margin: 8px 0;
  line-height: 1.5;
  color: #e5e7eb;
  word-wrap: break-word;
  font-size: 14px;
}
.kdt-img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #2a2f38;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Acciones (reacciones, votos, hilos) */
.kdt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}

/* === BADGES (version dark creativa) === */
.kdt-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

/* 🛡️ Admin */
.kdt-admin {
  background: linear-gradient(135deg, #ff0000, #7a0303);
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 0 6px rgba(17,24,39,0.8);
}

/* 💎 Diamond */
.kdt-diamond {
  box-shadow: 0 0 8px rgba(56,189,248,0.5);
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-color: #0ea5e9;
}

/* 🥇 Gold */
.kdt-gold {
  box-shadow: 0 0 6px rgba(250,204,21,0.5);
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #111;
  border-color: #b45309;
  text-shadow: none;
}

/* 🥈 Silver */
.kdt-silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  border-color: #6b7280;
}

/* 🥉 Bronze */
.kdt-bronze {
  background: linear-gradient(135deg, #b45309, #92400e);
  border-color: #78350f;
}

/* Toast de avisos */
.kdt-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: -40px;
  opacity: 0;
  transition: .3s;
  background: #1f2937;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  font-size: 14px;
  max-width: 90%;
  text-align: center;
  box-sizing: border-box;
}
.kdt-toast.show { bottom: 20px; opacity: 1; }
.kdt-toast.kdt-warn { background: #b45309; }
.kdt-toast.kdt-error { background: #991b1b; }

/* Paginador */
.kdt-pager { display: flex; justify-content: center; margin-top: 12px; }

/* Hover general */
.kdt-badge:hover, .kdt-react:hover, .kdt-vote:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  transition: all 0.15s ease-in-out;
}

/* 🔹 Reacciones globales sin fondo */
.kdt-global-reacts {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.kdt-global-reacts .kdt-react {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  color: inherit;
  padding: 5px;
}

.kdt-global-reacts .kdt-react:hover {
  transform: scale(1.15);
}

.kdt-global-reacts .emoji {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.kdt-global-reacts .count {
  font-weight: 700;
  font-size: 1rem;
}

.kdt-global-reacts .label {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* === 🔧 Edición inline (kdt-edit-box) === */
.kdt-edit-box {
  margin-top: 8px;
  background: #1f2937;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #374151;
}

.kdt-edit-text {
  width: 100%;
  min-height: 50px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 6px 8px;
  color: #f9fafb;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}

.kdt-edit-text::placeholder {
  color: #9ca3af;
}

.kdt-edit-box .kdt-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.kdt-edit-box .kdt-reply-actions button {
  background: #2563eb;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.kdt-edit-box .kdt-reply-actions button:hover {
  background: #1d4ed8;
}

.kdt-edit-box .kdt-reply-actions .kdt-edit-cancel {
  background: #6b7280;
}

/* === 🗑️ Confirmación de eliminación (kdt-del-box) === */
.kdt-del-box {
  margin-top: 8px;
  background: #1e293b;
  border: 1px solid #4b5563;
  border-radius: 8px;
  padding: 8px;
  color: #f9fafb;
  text-align: center;
  animation: fadeIn 0.2s ease-in-out;
}

.kdt-del-msg {
  font-size: 13px;
  margin-bottom: 8px;
}

.kdt-del-box .kdt-reply-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.kdt-del-box .kdt-reply-actions button {
  background: #b91c1c;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 12px;
}

.kdt-del-box .kdt-reply-actions button:hover {
  background: #991b1b;
}

.kdt-del-box .kdt-reply-actions .kdt-del-no {
  background: #6b7280;
}

/* 🔄 Animación suave de aparición */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === BOTONES SIN FONDO (Like, Dislike, Reply) === */

/* Footer de comentarios - EN PC */
.kdt-footer {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 8px 0 0 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* ← IMPORTANTE: Evita que se rompa en PC */
    justify-content: flex-start;
}

/* Contenedor de votos debe estar inline */
.kdt-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kdt-vote-up,
.kdt-vote-down,
.kdt-votes-readonly,
.kdt-reply {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
    color: #9ca3af !important;
    font-size: 14px !important;
    cursor: pointer;
    display: inline-flex; /* ← Cambio importante */
    align-items: center;
    gap: 4px;
    white-space: nowrap; /* ← Evita que el texto se rompa */
    flex-shrink: 0; /* ← Evita que se encojan */
}

.kdt-votes-readonly {
    color: #9ca3af !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.kdt-reply {
    color: #9ca3af !important;
}

/* Color fijo para los emojis - versión gris */
.kdt-vote-up .emoji,
.kdt-vote-down .emoji,
.kdt-reply .emoji {
    filter: grayscale(1) brightness(0.8) !important;
    opacity: 0.8 !important;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Estilo cuando están activos los votos - versión coloreada pero suave */
.kdt-vote-up.active {
    color: #60a5fa !important;
}

.kdt-vote-up.active .emoji {
    filter: sepia(1) saturate(3) hue-rotate(0deg) brightness(0.9) !important;
}

.kdt-vote-down.active {
    color: #f87171 !important;
}

.kdt-vote-down.active .emoji {
    filter: sepia(1) saturate(3) hue-rotate(220deg) brightness(0.9) !important;
}

/* Eliminar fondos de otros botones de acciones */
.kdt-edit,
.kdt-del,
.kdt-pin {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important; /* ← Color blanco para los botones de acción */
    padding: 4px 6px !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* Forzar que los emojis también sean blancos */
.kdt-edit::before,
.kdt-del::before,
.kdt-pin::before {
    filter: brightness(0) invert(1);
}

.kdt-pinned {
    color: #ffffff !important;
}

/* Opcional: Estilos hover para mejor usabilidad */
.kdt-vote-up:hover,
.kdt-vote-down:hover,
.kdt-reply:hover,
.kdt-edit:hover,
.kdt-del:hover,
.kdt-pin:hover {
    background: rgba(156, 163, 175, 0.1) !important;
    border-radius: 4px !important;
}

/* Asegurar que los emojis dentro de los botones no rompan el layout */
.kdt-vote-up .emoji,
.kdt-vote-down .emoji,
.kdt-reply .emoji {
    display: inline-block;
    vertical-align: middle;
}

/* Asegurar que todo el footer sea inline en PC */
@media (min-width: 769px) {
  .kdt-footer {
    flex-wrap: nowrap !important;
  }
  
  .kdt-votes {
    display: inline-flex !important;
  }
}

/* === MEDIA QUERIES PARA RESPONSIVO === */

/* Tablets (768px hacia abajo) */
@media (max-width: 768px) {
  .kdt-wrapper {
    padding: 10px;
    border-radius: 10px;
  }
  
  .kdt-global-reacts {
    gap: 10px;
    margin: 12px 0;
  }
  
  .kdt-global-reacts .emoji {
    font-size: 1.6rem;
  }
  
  .kdt-global-reacts .count {
    font-size: 0.9rem;
  }
  
  .kdt-global-reacts .label {
    font-size: 0.7rem;
  }
  
  .kdt-item {
    padding: 8px;
    border-radius: 8px;
  }
  
  .kdt-head {
    gap: 6px;
  }
  
  .kdt-avatar {
    width: 28px;
    height: 28px;
  }
  
  .kdt-author {
    font-size: 13px;
  }
  
  .kdt-content {
    font-size: 13px;
    line-height: 1.4;
    margin: 6px 0;
  }
}

/* Móviles (480px hacia abajo) - AQUÍ PERMITIMOS QUE SE ROMPA EN 2 LÍNEAS */
@media (max-width: 480px) {
  .kdt-wrapper {
    padding: 8px;
    border-radius: 8px;
  }
  
  .kdt-profile {
    font-size: 13px;
  }
  
  #kdt-text {
    min-height: 70px;
    padding: 8px;
    font-size: 13px;
  }
  
  .kdt-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .kdt-global-reacts {
    gap: 8px;
  }
  
  .kdt-global-reacts .emoji {
    font-size: 1.4rem;
  }
  
  .kdt-global-reacts .kdt-react {
    padding: 3px;
  }
  
  /* Mejorar legibilidad del header en móvil */
  .kdt-head {
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .kdt-meta {
    width: 100%;
  }
  
  .kdt-author {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  
  .kdt-date {
    font-size: 10px;
    gap: 4px;
    line-height: 1.3;
  }
  
  .kdt-edited {
    font-size: 9px;
  }
  
  /* Separar los badges en móvil para mejor legibilidad */
  .kdt-badge {
    font-size: 7px;
    padding: 2px 5px;
    margin-left: 2px;
  }
  
  .kdt-pinned {
    font-size: 10px;
    display: inline-block;
  }
  
  /* EN MÓVIL: Permitir que se rompa en múltiples líneas */
  .kdt-footer {
    gap: 8px;
    flex-wrap: wrap; /* ← Esto permite que se rompa en móvil */
  }
  
  .kdt-vote-up,
  .kdt-vote-down,
  .kdt-reply {
    padding: 3px 6px !important;
    font-size: 13px !important;
  }
  
  .kdt-actions {
    gap: 4px;
    margin-top: 6px;
  }
  
  .kdt-edit,
  .kdt-del,
  .kdt-pin {
    padding: 3px 5px !important;
    font-size: 12px !important;
  }
  
  .kdt-toast {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* Móviles muy pequeños (360px hacia abajo) */
@media (max-width: 360px) {
  .kdt-wrapper {
    padding: 6px;
  }
  
  .kdt-global-reacts {
    gap: 5px;
  }
  
  .kdt-global-reacts .emoji {
    font-size: 1.2rem;
  }
  
  .kdt-global-reacts .label {
    display: none;
  }
  
  /* En móviles muy pequeños, los botones pueden ocupar más espacio */
  .kdt-footer {
    justify-content: space-between;
  }
  
  .kdt-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .kdt-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .kdt-vote-up,
  .kdt-vote-down,
  .kdt-reply {
    font-size: 12px !important;
  }
}

/* Asegurar que las imágenes sean responsivas */
.kdt-content img {
  max-width: 100%;
  height: auto;
}

/* Mejorar legibilidad en todos los dispositivos */
.kdt-content {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 🔀 Sort Filters */
.kdt-sort-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
}

.kdt-sort-btn {
  flex: 1;
  padding: 8px 16px;
  background: #23272f;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.kdt-sort-btn:hover {
  background: #2a2f38;
  border-color: #4b5563;
  color: #e5e7eb;
}

.kdt-sort-btn.active {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: #2563eb;
}

.kdt-sort-btn.active:hover {
  background: linear-gradient(145deg, #1e3a8a, #1d4ed8);
}





/* 🔀 Sort Filters - Versión discreta y pequeña */
.kdt-sort-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  justify-content: flex-end; /* Alineado a la derecha */
}

.kdt-sort-btn {
  padding: 4px 10px;
  background: #23272f;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.kdt-sort-btn:hover {
  background: #2a2f38;
  border-color: #4b5563;
  color: #e5e7eb;
}

.kdt-sort-btn.active {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.3);
}

.kdt-sort-btn.active:hover {
  background: linear-gradient(145deg, #1e3a8a, #1d4ed8);
}




/* Responsive filters */
@media (max-width: 480px) {
  .kdt-sort-filters {
    gap: 4px;
    margin-bottom: 10px;
  }
  
  .kdt-sort-btn {
    padding: 3px 8px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .kdt-sort-btn {
    padding: 3px 6px;
    font-size: 9px;
  }
}














/* 🔽 RESPUESTAS COLAPSABLES */
.kdt-replies-collapsed {
    margin-top: 10px;
    border-left: 3px solid #e5e7eb;
    padding-left: 15px;
}

.kdt-show-replies {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.kdt-show-replies:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.kdt-reply-count {
    font-weight: 600;
    color: #6597e7;
}

.kdt-show-text {
    font-size: 12px;
}

.kdt-replies.hidden {
    display: none;
}

.kdt-replies:not(.hidden) {
    margin-top: 15px;
    border-left: 3px solid #e5e7eb;
    padding-left: 15px;
}















/* 🔐 Login section - POSICIÓN MEJORADA */
.kdt-login-section {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  text-align: center;
  position: relative;
}

.kdt-login-link {
  color: #e2e8f0 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.kdt-login-link:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.kdt-login-link strong {
  color: #60a5fa;
  font-weight: 600;
}

/* 🔄 Reacciones globales - SIN el login prompt */
.kdt-global-reacts {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.kdt-global-reacts .kdt-react {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  color: inherit;
  padding: 5px;
}

.kdt-global-reacts .kdt-react:hover {
  transform: scale(1.15);
}

.kdt-global-reacts .emoji {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.kdt-global-reacts .count {
  font-weight: 700;
  font-size: 1rem;
}

.kdt-global-reacts .label {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* === MEDIA QUERIES RESPONSIVAS PARA LOGIN SECTION === */

/* Tablets (768px hacia abajo) */
@media (max-width: 768px) {
  .kdt-login-section {
    padding: 10px 12px;
    margin: 10px 0;
  }
  
  .kdt-login-link {
    font-size: 13px;
    padding: 6px 0;
  }
}

/* Móviles (480px hacia abajo) */
@media (max-width: 480px) {
  .kdt-login-section {
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 6px;
  }
  
  .kdt-login-link {
    font-size: 12px;
    padding: 4px 0;
  }
  
  .kdt-login-link br {
    display: none; /* Para mantener todo en una línea en móviles */
  }
}

/* Móviles muy pequeños (360px hacia abajo) */
@media (max-width: 360px) {
  .kdt-login-section {
    padding: 6px 8px;
  }
  
  .kdt-login-link {
    font-size: 11px;
  }
}













/* 🎨 FORMATTING TOOLBAR */
.kdt-format-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #23272f;
  border: 1px solid #374151;
  border-radius: 6px;
  flex-wrap: wrap;
}

.kdt-format-btn {
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 4px;
  padding: 4px 8px;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kdt-format-btn:hover {
  background: #4b5563;
  border-color: #6b7280;
  transform: translateY(-1px);
}

.kdt-format-btn:active {
  transform: translateY(0);
}

.kdt-format-btn strong {
  font-weight: 700;
  color: #fbbf24;
}

.kdt-format-btn em {
  font-style: italic;
  color: #93c5fd;
}

/* Responsive formatting toolbar */
@media (max-width: 480px) {
  .kdt-format-toolbar {
    gap: 6px;
    padding: 4px 6px;
  }
  
  .kdt-format-btn {
    padding: 3px 6px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .kdt-format-toolbar {
    gap: 4px;
  }
  
  .kdt-format-btn {
    padding: 2px 4px;
    font-size: 10px;
  }
}








/* 🔒 SPOILER STYLES */
.kdt-spoiler {
  background: #000;
  color: transparent;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.kdt-spoiler:hover {
  background: #374151;
}

.kdt-spoiler.revealed {
  background: #1f2937;
  color: #e5e7eb;
}

/* 📝 LIST STYLES */
.kdt-content ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: none;
}

.kdt-content li {
  margin: 4px 0;
  position: relative;
}

.kdt-content li:before {
  content: "•";
  color: #60a5fa;
  font-weight: bold;
  position: absolute;
  left: -15px;
}














/* 👁️ FORMAT PREVIEW STYLES */
.kdt-format-preview {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 10px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
  display: none;
  max-height: 150px;
  overflow-y: auto;
}

.kdt-format-preview strong {
  color: #fbbf24;
  font-weight: 700;
}

.kdt-format-preview em {
  color: #93c5fd;
  font-style: italic;
}

.kdt-format-preview .kdt-spoiler {
  background: #000;
  color: transparent;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
}

.kdt-format-preview .kdt-spoiler.revealed {
  background: #374151;
  color: #e5e7eb;
}

.kdt-format-preview ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: none;
}

.kdt-format-preview li {
  margin: 4px 0;
  position: relative;
}

.kdt-format-preview li:before {
  content: "•";
  color: #60a5fa;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* Responsive preview */
@media (max-width: 480px) {
  .kdt-format-preview {
    padding: 8px;
    font-size: 13px;
    max-height: 120px;
  }
}