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

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

.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.banner {
  background: #e8f4fd;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.banner.error {
  background: #fdecea;
  border-color: #f5c6cb;
}

.banner p {
  margin-bottom: 10px;
  color: #333;
}

.banner ol {
  margin-left: 20px;
  color: #555;
}

.banner li {
  margin-bottom: 5px;
}

#status-area {
  margin-bottom: 20px;
}

#status {
  color: #666;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#subscribe-btn {
  background: #4a90d9;
  color: white;
}

#subscribe-btn:hover:not(:disabled) {
  background: #3a7bc8;
}

#unsubscribe-btn {
  background: #dc3545;
  color: white;
}

#unsubscribe-btn:hover:not(:disabled) {
  background: #c82333;
}

.hidden {
  display: none !important;
}

/* Admin page styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #4a90d9;
}

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

#send-btn {
  background: #28a745;
  color: white;
  margin-top: 10px;
}

#send-btn:hover:not(:disabled) {
  background: #218838;
}

.result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 500;
}

.result.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.result.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#subscriber-count {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}
