* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f5f7;
  color: #222;
}

header {
  background: #1f2933;
  color: #fff;
  padding: 1rem;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.main-container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="text"] {
  
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem;
  border: 0px solid #cbd5e1;
  font: inherit;

}

input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
  font: inherit;
}

textarea {
  min-height: 600px;
  resize: vertical;
}

button {
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 600px;
  overflow-y: auto;
}

.note-list button {
  width: 100%;
  text-align: left;
  background: #e5e7eb;
  color: #111827;
}

.note-list button.active {
  background: #2563eb;
  color: #fff;
}

@media (min-width: 768px) {
  .notes-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
}
