/* src/components/HabitsManager.css */

@import '../variables.css';

.habits-manager-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 400; /* Ensure it appears above other overlays */
  display: flex;
  justify-content: center;
  align-items: center;
}

.habits-manager {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.habits-manager h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-light);
}

.close-button:hover {
  color: var(--text-color);
}

.habits-manager ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.habits-manager li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.habits-manager li button {
  padding: 5px 10px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.habits-manager li button:hover {
  background-color: var(--accent-dark);
}

.add-habit-form {
  display: flex;
  align-items: center;
}

.add-habit-form input {
  flex-grow: 1;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.add-habit-form button {
  padding: 8px 15px;
  background-color: var(--text-color); /* Monochrome color */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-habit-form button:hover {
  background-color: var(--text-light); /* Slightly lighter monochrome color */
}