.hidden {
  display: none;
}

#loginPanel,
#adminPanel {
  max-width: 480px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

label {
  font-size: 0.85rem;
  color: #444;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid #06c;
  background: #06c;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

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

.button-secondary {
  background: #fff;
  color: #06c;
}

.error {
  color: #c00;
  font-size: 0.9rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#postList {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-post {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.admin-post-date {
  color: #888;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.admin-post-image {
  max-width: 160px;
  max-height: 120px;
  display: block;
  margin-top: 0.5rem;
  border-radius: 4px;
}
