.category-manager {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.12);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.category-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2d6a4f;
  text-shadow: 0 2px 4px rgba(45, 106, 79, 0.12);
}

.add-category-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  color: #2d6a4f;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.18);
}

.add-category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.22);
  background: linear-gradient(135deg, #8bd7b8, #cfe7a8);
}

.add-category-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.add-category-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.6);
  color: #2d6a4f;
  transition: all 0.2s ease;
}

.add-category-form input::placeholder {
  color: rgba(45, 106, 79, 0.6);
}

.add-category-form input:focus {
  outline: none;
  border-color: rgba(45, 106, 79, 0.6);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

.add-category-form button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-category-form button:first-of-type {
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  color: #2d6a4f;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.18);
}

.add-category-form button:first-of-type:hover {
  background: linear-gradient(135deg, #8bd7b8, #cfe7a8);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.22);
}

.add-category-form button:last-of-type {
  background: rgba(255, 255, 255, 0.6);
  color: #2d6a4f;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.add-category-form button:last-of-type:hover {
  background: rgba(255, 255, 255, 0.75);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #2d6a4f;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.12);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(45, 106, 79, 0.12);
}

.category-item .delete-btn {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
}

.category-item .delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  color: white;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
