.configuration-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.config-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 800px;
    height: 600px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.config-content-left {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: left;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03);
}

.config-content-left div {
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.config-content-left div:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item.active {
    background-color: rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.config-content-rigth {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    width: 70%;
    height: 100%;
}



.user-info {
  background: #fff;
  border-radius: 8px;
}

.user-info h3 {
  margin-bottom: 1rem;
  color: #333;
}

.user-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.user-info li:last-child {
  border-bottom: none;
}

.user-info strong {
  color: #555;
}

.palette-config {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.color-picker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  background: #f9f9f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.color-picker label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

.color-picker input[type="color"] {
  border: none;
  background: none;
  width: 50px;
  height: 35px;
  cursor: pointer;
}

.categories-config {
  height: 100%;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  display: flex;
  justify-content: top;
  align-items: center;
}

/* Títulos */
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 10px;
  color: #444;
}

/* Formulario */
.category-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;

}

.category-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 80%;
  font-size: 0.95rem;
  transition: border-color 0.2s ease-in-out;
}

.category-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.category-form button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.category-form button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.category-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-msg {
  color: #d9534f;
  background: rgba(217, 83, 79, 0.15);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Categorías */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 80%;
}

.category-item {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
}

.category-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.subcategory-list {
  margin-top: 6px;
  padding-left: 16px;
  list-style: disc;
}

.subcategory-list li {
  font-size: 0.9rem;
  color: #555;
}

.empty-text {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* === SUBCATEGORIES CONFIG CONTAINER === */

.subcategories-config {
  height: 100%;
  width: 100%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Títulos (reutilizando estilos del anterior contenedor) */
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
  margin-top: 5px;
}

/* === FORMULARIO === */

.subcategory-form {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  width: 80%;
}

.subcategory-form input,
.subcategory-form select {
  padding: 10px 12px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.8rem;
  transition: border-color 0.2s ease-in-out;
  background: #fafafa;
}

.subcategory-form input:focus,
.subcategory-form select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.subcategory-form select {
  cursor: pointer;
}

.subcategory-form button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  width: 60%;
  transition: all 0.2s ease-in-out;
}

.subcategory-form button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.subcategory-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-msg {
  color: #d9534f;
  background: rgba(217, 83, 79, 0.15);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

/* === LISTA DE CATEGORÍAS CON SUBCATEGORÍAS === */

.subcategory-list-container {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subcategory-item {
  padding: 14px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
}

.subcategory-cat-title {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.subcategory-list {
  margin-top: 6px;
  list-style: disc;
  padding-left: 20px;
}

.subcategory-list li {
  font-size: 0.9rem;
  color: #555;
}

.empty-text {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
