* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Segoe UI, sans-serif;
  height: 100vh;
  background: #f3f3f3;
  color: #333;
}

.note-app {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 60px 1fr;
  height: 100vh;
  grid-template-areas:
    "header header"
    "sidebar main";
}

.note-app__header {
  grid-area: header;
  background: #7719aa;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.note-app__title {
  font-size: 1.4rem;
}

.note-app__sidebar {
  grid-area: sidebar;
  background: #f0f0f0;
  border-right: 1px solid #ccc;
  padding: 20px;
}

.note-app__sections {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.note-app__sections a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.note-app__sections a:hover {
  color: #7719aa;
}

.note-app__main {
  grid-area: main;
  padding: 20px;
  background: white;
  display: flex;
  flex-direction: column;
}

.note-app__textarea {
  width: 100%;
  height: 150px;
  border: none;
  resize: none;
  font-size: 1rem;
  line-height: 1.6;
  background: #fff8ff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.note-app__save-btn,
.note-app__toggle-list {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #7719aa;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
}

.note-app__save-btn:hover,
.note-app__toggle-list:hover {
  background-color: #5d1388;
}

.note-app__list {
  display: none;
  margin-top: 30px;
}

.note-app__items {
  list-style: disc;
  padding-left: 20px;
  color: #444;
}

.note-app__delete-btn {
  margin-left: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: red;
  font-size: 1rem;
}

.note-app__item-text {
  cursor: pointer;
  font-weight: bold;
}

.note-app__item-text:hover {
  text-decoration: underline;
  color: #7719aa;
}
