.list {
  width: 100%;
  display: flex;
  padding: 1rem;
  margin: 1rem;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
}

.list-title {
  width: 100%;
  font-size: 1.5rem;
  color: var(--bold);
  font-weight: 700;
}

.list-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Change to Grid if 6 or more children */
.list-wrapper:has(.list-item:nth-child(6)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem;
  align-items: flex-start;
  justify-items: flex-start;
}

/* Change to Grid if 6 or more children */
.list-wrapper:has(.list-item:nth-child(6)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem;
  align-items: center;
  justify-items: center;
  justify-content: center;
  align-content: center;
}

.list-item {
  width: 100%;
  display: flex;
  padding: 10px;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
}

.list-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  font-size: 1.2rem;
  color: var(--color);
}

/* Additional styles */
.list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2rem;
  border: 0px solid var(--color);
  color: var(--color);
  background: rgba(var(--color-rgb), 1);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

/* Filled State for Icons */
.list-icon.filled {
  color: var(--background);
  background: var(--color);
  border: 2px solid var(--color);
  transition: filter 0.2s ease-in-out;
}

.list-icon.filled:hover,
.list-icon.filled:focus-visible {
  filter: brightness(0.9);
}

/* Darken Modifier */
.list-icon.darken:hover,
.list-icon.darken:focus-visible {
  filter: brightness(0.6);
}

/* States */
.list-icon.error {
  --color: var(--error-color);
  --color-rgb: 242, 155, 158;
}

.list-icon.success {
  --color: var(--success-color);
  --color-rgb: 157, 223, 158;
}

.list-icon.warning {
  --color: var(--warning-color);
  --color-rgb: 248, 218, 133;
}

.list-icon.white {
  --color: var(--white-color);
  --color-rgb: 255, 255, 255;
}

.list-icon.black {
  --color: var(--black-color);
  --color-rgb: 51, 51, 51;
}

.list-icon.question {
  --color: var(--question-color);
  --color-rgb: 51, 51, 51;
}

.list-icon.odd {
  --color: var(--odd-color);
  --color-rgb: 51, 51, 51;
}

.list-icon.transparent-outline {
  border-color: transparent !important;
  background: transparent !important;
}

.list-icon.transparent-outline:hover {
  background: rgba(var(--color-rgb), 0.05) !important;
  border-color: transparent !important;
}

.list-actions {
  color: var(--bold);
  width: fit-content;
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 1rem;
  gap: 1rem;
}

.action-button {
  font-size: 1.2rem;
}

.action-button:hover {
  opacity: 0.8;
}