:root {
  --primary-color: #4a90e2;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ... (previous CSS) */

#char-count {
  text-align: right;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

#note-list li .note-content {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ... (rest of the CSS) */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

#app-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

#app-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#auth-page, #note-page {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

h2, h3 {
  margin-top: 0;
  color: var(--primary-color);
  text-align: center;
}

textarea, input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

textarea:focus, input:focus {
  outline: none;
  border-color: var(--primary-color);
}

#note-content {
  height: 120px;
  resize: vertical;
  text-align: left;
}

button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #3a7bc8;
}

#note-list {
  list-style-type: none;
  padding: 0;
}

#note-list li {
  background-color: white;
  margin: 10px 0;
  padding: 15px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-actions button {
  width: auto;
  padding: 8px 12px;
  margin-left: 10px;
  font-size: 14px;
}

#auth-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#auth-page form {
  display: flex;
  flex-direction: column;
}

#note-page {
  display: none;
}

#logout {
  background-color: #e74c3c;
}

#logout:hover {
  background-color: #c0392b;
}

.edit-note {
  background-color: #f39c12;
}

.edit-note:hover {
  background-color: #d35400;
}

.delete-note {
  background-color: #e74c3c;
}

.delete-note:hover {
  background-color: #c0392b;
}

label {
  text-align: center;
  display: block;
  margin-bottom: 5px;
}

@media (max-width: 480px) {
  #app-container {
    padding: 10px;
  }
  
  #auth-page, #note-page {
    padding: 20px;
  }
  
  #app-title {
    font-size: 2em;
  }
}