:root {
  --purple: #800080;
  --purple-dark: #4B006E;
  --lilac-bg: rgba(243,232,255,0.9);
}

body {
  font-family: Arial, sans-serif;
  background-image:
    radial-gradient(circle, #d8b7dd 1px, transparent 1px),
    radial-gradient(circle, #d8b7dd 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  margin: 0;
  padding: 20px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.title-container h1 {
  margin: 0 10px 0 0;
  font-size: 2.5em;
  color: #4B0082;
}

.title-image {
  width: 50px;
  height: 50px;
}

.edit-controls {
  text-align: center;
  margin-bottom: 10px;
}

button {
  background-color: var(--purple);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: var(--purple-dark);
}

.section {
  border: 2px solid var(--purple);
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  background-color: var(--lilac-bg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section h2 {
  margin-top: 0;
  color: var(--purple);
}

/* To-Do List */
#todo-list {
  list-style: none;
  padding: 0;
}
#todo-list li {
  padding: 8px;
  border-bottom: 1px solid #d0b0d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.todo-input-group {
  display: flex;
  margin-top: 10px;
}
.todo-input-group input {
  flex: 1;
  padding: 8px;
}
.todo-input-group button {
  margin-left: 5px;
}

/* Chat */
#chat-box {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #d0b0d0;
  padding: 10px;
  background: #fff;
}
.chat-input-group {
  display: flex;
  margin-top: 10px;
}
.chat-input-group input {
  flex: 1;
  padding: 8px;
}
.chat-input-group button {
  margin-left: 5px;
}

.hidden {
  display: none;
}
