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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

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

.header h1 {
  color: #333;
  margin: 0;
}

.btn-logout {
  padding: 8px 16px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.btn-logout:hover {
  background: #4b5563;
}

#note-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

#note-form input,
#note-form textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

#note-form button {
  padding: 10px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

#note-form button:hover {
  background: #4338ca;
}

#notes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
}

.note h3 {
  margin-bottom: 6px;
  color: #222;
}

.note p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.note .date {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.note-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.note-actions button {
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}

.btn-edit {
  background: #eab308;
  color: #fff;
}

.btn-edit:hover {
  background: #ca8a04;
}

.btn-delete {
  background: #ef4444;
  color: #fff;
}

.btn-delete:hover {
  background: #dc2626;
}

.btn-save {
  background: #22c55e;
  color: #fff;
}

.btn-save:hover {
  background: #16a34a;
}

.btn-cancel {
  background: #6b7280;
  color: #fff;
}

.btn-cancel:hover {
  background: #4b5563;
}

.note input,
.note textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 8px;
}

.note textarea {
  resize: vertical;
}
