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

body {
  background: white;
  font-family: 'Courier New', monospace;
  color: black;
  padding: 40px;
  line-height: 1.6;
}

.content {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

h1 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 20px;
}

h2 {
  font-size: 18px;
  font-weight: normal;
  margin-top: 30px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
}

ul {
  list-style: none;
}

li {
  margin-bottom: 15px;
}

li strong {
  font-weight: bold;
}

/* Admin Panel Styles */
.admin-container {
  max-width: 600px;
}

.admin-container h1 {
  margin-bottom: 30px;
}

.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  margin-bottom: 15px;
}

textarea, input {
  width: 100%;
  background: white;
  border: 1px solid black;
  color: black;
  padding: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin-bottom: 10px;
}

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

textarea:focus, input:focus {
  outline: none;
}

button {
  background: black;
  color: white;
  border: none;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  margin-right: 10px;
}

button:hover {
  opacity: 0.8;
}

.book-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.book-item:last-child {
  border-bottom: none;
}

.book-item input {
  margin-bottom: 8px;
}

.book-actions {
  margin-top: 10px;
}

.delete-btn {
  background: #666;
}

.back-link {
  display: inline-block;
  color: black;
  text-decoration: none;
  margin-bottom: 20px;
  border: 1px solid black;
  padding: 8px 16px;
}

.back-link:hover {
  background: black;
  color: white;
}

h3 {
  font-size: 16px;
  font-weight: normal;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Todo Page Styles */
.todo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.todo-input input[type="text"] {
  flex: 1;
  min-width: 200px;
}

.todo-input select {
  padding: 8px;
  font-family: 'Courier New', monospace;
  background: white;
  border: 1px solid black;
  color: black;
}

.todo-input button {
  padding: 8px 16px;
  background: black;
  color: white;
  border: none;
  font-family: 'Courier New', monospace;
  cursor: pointer;
}

.todo-input button:hover {
  opacity: 0.8;
}

.todo-section {
  margin-bottom: 30px;
}

.todo-section h2 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 10px;
}

.todo-section ul {
  list-style: none;
  padding-left: 0;
}

.todo-section li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 0;
}

.todo-section li span {
  flex: 1;
}

.delete-todo {
  padding: 4px 12px;
  background: #666;
  color: white;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

.delete-todo:hover {
  background: #444;
}

/* Auth Styles */
.auth-loading {
  display: none;
}

body.checking-auth .admin-container,
body.checking-auth .content {
  opacity: 0;
  pointer-events: none;
}

.auth-buttons {
  margin: 40px 0;
}

.auth-btn {
  padding: 12px 24px;
  background: black;
  color: white;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
}

.auth-btn:hover {
  opacity: 0.8;
}

.logout-btn {
  padding: 6px 16px;
  background: #666;
  color: white;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #444;
}

.error-message {
  color: red;
  margin-top: 20px;
  font-size: 14px;
}
