body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f2f5;
  padding: 20px;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

h1 {
  margin-bottom: 1.5rem;
  color: #333;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.full-width {
  width: 100% !important;
  box-sizing: border-box;
}

.error-msg {
  color: #ff4d4f;
  font-size: 0.85rem;
  text-align: left;
  min-height: 1.2em;
}

.welcome-msg {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

.memo-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.memo-list-container {
  text-align: left;
  margin-bottom: 2rem;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
}

.memo-list-container h3 {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0;
  margin-bottom: 8px;
}

#memoList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#memoList li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #444;
  word-break: break-all;
}

#memoList li:last-child {
  border-bottom: none;
}

.hidden {
  display: none !important;
}

input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.secondary-btn {
  background-color: #6c757d;
}

.secondary-btn:hover {
  background-color: #5a6268;
}

.text-btn {
  background: none;
  color: #888;
  font-size: 0.85rem;
  margin-top: 15px;
  padding: 5px;
  width: auto;
  font-weight: normal;
}

.text-btn:hover {
  background: none;
  color: #333;
  text-decoration: underline;
}

.memo-author {
  font-weight: bold;
  color: #007bff;
  margin-right: 5px;
}

.result-author {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: normal;
}

.result-text {
  font-size: 1.8rem;
  color: #007bff;
  word-break: break-all;
}

#result {
  margin-top: 2rem;
  padding: 25px;
  background-color: #e7f1ff;
  border-radius: 12px;
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
