/* Icon List Modal */
.icon-list-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.icon-list-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.icon-list-modal-content {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
  margin: 5% auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.icon-list-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  background: #f5f5f5;
}

.icon-list-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.icon-list-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
}

.icon-list-modal-close:hover {
  color: #000;
}

.icon-list-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.icon-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.icon-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-list-item:hover {
  border-color: #295E63;
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-preview {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  fill: #295E63;
}

.icon-name {
  font-size: 12px;
  color: #666;
  text-align: center;
  word-break: break-word;
}

.icon-list-item:hover .icon-name {
  color: #295E63;
  font-weight: 600;
}

/* Help text link styling */
.icon-list-trigger {
  color: #295E63;
  text-decoration: underline;
  cursor: pointer;
}

.icon-list-trigger:hover {
  color: #1a3d40;
}
