body {
  font-family: Arial, sans-serif;
  margin: 20px;  
}

#editor {
  position: relative;         /* Necesario para que el fondo se mantenga atrás */
  z-index: 1;                 /* Asegura que el contenido esté encima */
  min-height: 200px;
  padding: 10px;
  background: white;          /* Valor por defecto */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  box-sizing: border-box;
}

.editor-container {
  border: 1px solid #ccc;
  background: #f2f3f9;
  padding: 10px;
  max-width: 1200px;
  margin: auto;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 5px;  
}

label {  
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5px; 
  border: none; 
}

#fontSizeDropdown {
  width: 40px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; 
}

.editor-content {
  font-family: Arial, sans-serif;
  min-height: 300px;
  padding: 5px;
  border: 1px solid #ccc;
  overflow-y: auto;
}


/* Dropdown de imagen */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 100;
  background-color: white;
  border: 1px solid #ccc;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content button {
  display: block;
  width: 80%;
  padding: 4px 4px;
  text-align: center;    
  cursor: pointer;
  border: none;
  background: white;
}

/* Estilo para viñeta con símbolo personalizado */
ul.bullet-checkmark {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-checkmark li::marker {
  content: "✔️ ";
}

ul.bullet-star {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-star li::marker {
  content: "★ ";
}

ul.bullet-arrow {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-arrow li::marker {
  content: "➤ ";
}

ul.bullet-line {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-line li::marker {
  content: "▬ ";
}

ul.bullet-diamond {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-diamond li::marker {
  content: "❖ ";
}

ul.bullet-diamond2 {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-diamond2 li::marker {
  content: "◆ ";
}

ul.bullet-line {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-line li::marker {
  content: "▬ ";
}

ul.bullet-diamond {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-diamond li::marker {
  content: "❖ ";
}

ul.bullet-diamond2 {
  list-style: none;
  padding-left: 1.5em;
}
ul.bullet-diamond2 li::marker {
  content: "◆ ";
}

.selected {
  outline: 2px dashed red;
}

.modal {
  display: none;
  position: absolute;
  top: 15%;
  left: 50%;  
  background: white;
  border: 1px solid #ccc;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  width: auto;
  min-width: 240px;
  white-space: nowrap;
}
.modal .fondo-panel{
  display: none;
  position: absolute;
  top: 15%;
  left: 50%;  
  background: white;
  border: 1px solid #ccc;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  width: auto;
  min-width: 240px;
  white-space: nowrap;
}

label {
  display: block;
  margin-top: 5px;
}

/* ==== ESTILOS PARA TOOLBAR DE PORTAPAPELES ==== */
.clipboard-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: #f2f2f2;
  border-bottom: 1px solid #ccc;
  font-family: sans-serif;
}

.clipboard-toolbar span {
  font-weight: bold;
  margin-right: 10px;
  color: #333;
}

.clipboard-toolbar button {
  background-color: white;
  border: 1px solid #ccc;
  padding: 4px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s;
}

.clipboard-toolbar button:hover {
  background-color: #e0e0e0;
}

#applyColorBtn {
  margin-left: 10px;
}
#tableModal {
  position: absolute; /* o absolute */
  z-index: 1000;
  background: white;
  /* etc */
}

#emojiPanel span {
    font-size: 24px;
    cursor: pointer;
    margin: 5px;
    display: inline-block;
  }

  #emojiPanel span:hover {
    background: #f0f0f0;
    border-radius: 5px;
  }

  /* Naturales */
ol.list-decimal { list-style-type: decimal; }
ol.list-decimal-paren { list-style-type: decimal; }
ol.list-decimal-paren li::marker { content: counter(list-item) ") "; }

/* Romanos */
ol.list-roman-upper { list-style-type: upper-roman; }
ol.list-roman-lower { list-style-type: lower-roman; }

/* Letras */
ol.list-lower-alpha { list-style-type: lower-alpha; }
ol.list-lower-alpha-paren li::marker {
  content: counter(list-item, lower-alpha) ") ";
}
ol.list-upper-alpha { list-style-type: upper-alpha; }

/* Editor de Fondo */
.fondo-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fondo-panel input[type="text"] {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
  margin-top: 5px;
}