* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1f3a;
  color: #1a1a1a;
  margin: 0;
  padding: 40px 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

h1 {
  margin: 0 0 20px 0;
  color: #0b1f3a;
}

#note-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

input, textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #1e63c8;
}

button {
  background: #1e63c8;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #164f9e;
}

.note-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.note-card h3 {
  margin: 0 0 6px 0;
  color: #0b1f3a;
}

.note-card p {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 14px;
  white-space: pre-wrap;
}

.note-actions {
  display: flex;
  gap: 8px;
}

.note-actions button {
  font-size: 12px;
  padding: 6px 10px;
}

.delete-btn {
  background: #dc2626;
}

.delete-btn:hover {
  background: #b91c1c;
}

.edit-btn {
  background: #6b7280;
}

.edit-btn:hover {
  background: #4b5563;
}
.edit-title-input,
.edit-content-input {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #1e63c8;
  background: #f5f9ff;
}

.save-btn {
  background: #16a34a;
}

.save-btn:hover {
  background: #15803d;
}

.cancel-btn {
  background: #e5e7eb;
  color: #374151;
}

.cancel-btn:hover {
  background: #d1d5db;
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 24px 0;
}
.note-date {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 10px;
}

.char-count {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
  margin-top: -4px;
}

.search-input {
  width: 100%;
  margin-bottom: 16px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.app-header h1 {
  margin: 0;
}

.logout-btn {
  background: #6b7280;
  font-size: 13px;
  padding: 8px 14px;
}

.logout-btn:hover {
  background: #4b5563;
}

.auth-error {
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0 0 0;
}

.auth-toggle-text {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 16px;
}

.auth-toggle-text a {
  color: #1e63c8;
  font-weight: 600;
  text-decoration: none;
}

.auth-toggle-text a:hover {
  text-decoration: underline;
}