/* Material Symbols Outlined CSS */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

.material-symbols {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24 !important;
}

/* Tamaños específicos para Material Symbols */
.material-symbols.md-17 { 
  font-size: 17px; 
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 18;
}
.material-symbols.md-24 { 
  font-size: 24px; 
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols.md-36 { 
  font-size: 36px; 
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}
.material-symbols.md-48 { 
  font-size: 48px; 
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* Estilos de relleno para Material Symbols */
.material-symbols.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

.material-symbols.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* Máxima especificidad para outline y filled */
div.icon-text-container i.material-symbols.outline,
.note-editable i.material-symbols.outline,
i.material-symbols.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

div.icon-text-container i.material-symbols.filled,
.note-editable i.material-symbols.filled,
i.material-symbols.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* Combinaciones de tamaño y estilo con máxima especificidad */
div.icon-text-container i.material-symbols.md-17.outline,
.note-editable i.material-symbols.md-17.outline,
i.material-symbols.md-17.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 18 !important;
}
div.icon-text-container i.material-symbols.md-17.filled,
.note-editable i.material-symbols.md-17.filled,
i.material-symbols.md-17.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 18 !important;
}
div.icon-text-container i.material-symbols.md-24.outline,
.note-editable i.material-symbols.md-24.outline,
i.material-symbols.md-24.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}
div.icon-text-container i.material-symbols.md-24.filled,
.note-editable i.material-symbols.md-24.filled,
i.material-symbols.md-24.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}
div.icon-text-container i.material-symbols.md-36.outline,
.note-editable i.material-symbols.md-36.outline,
i.material-symbols.md-36.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 36 !important;
}
div.icon-text-container i.material-symbols.md-36.filled,
.note-editable i.material-symbols.md-36.filled,
i.material-symbols.md-36.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36 !important;
}
div.icon-text-container i.material-symbols.md-48.outline,
.note-editable i.material-symbols.md-48.outline,
i.material-symbols.md-48.outline {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48 !important;
}
div.icon-text-container i.material-symbols.md-48.filled,
.note-editable i.material-symbols.md-48.filled,
i.material-symbols.md-48.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48 !important;
}

/* Estilos para el plugin de Summernote */
.note-editor .btn .material-symbols {
  vertical-align: middle;
  margin-right: 3px;
}

/* Estilos para el diálogo del plugin */
.icon-item {
  transition: all 0.2s ease;
}

.icon-item:hover {
  background-color: #e9ecef !important;
  border-color: #007bff !important;
  transform: scale(1.05) !important;
}

.icon-item.selected {
  background-color: #007bff !important;
  color: white !important;
  border-color: #0056b3 !important;
}

.icon-item.selected small {
  color: white !important;
}

/* Responsive para la grilla de iconos */
@media (max-width: 768px) {
  .icon-item {
    padding: 8px !important;
  }
  
  .icon-item .material-icons {
    font-size: 16px !important;
  }
  
  .icon-item small {
    font-size: 7px !important;
  }
}

/* Mejoras visuales para el contenedor de iconos */
#icons-container {
  border-radius: 6px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

#icons-container::-webkit-scrollbar {
  width: 8px;
}

#icons-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#icons-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

#icons-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
