/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
form,
textarea,
label,
button,
input,
select {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #f5f7fa;
  padding: 4rem 1rem;
  color: #1f2937;
}

/* Layout */
main.admin-panel {
  width: 100%;
  max-width: 900px;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 2rem;
  font-weight: 600;
}

/* Forms */
form.admin-panel {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Prompt Form */
#prompt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Buttons */
.button-row {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.button {
  padding: 0.6rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #2563eb;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease,
    box-shadow 150ms ease;
}

.button:hover {
  background-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.logout-button {
  background-color: #6b7280;
}

.logout-button:hover {
  background-color: #4b5563;
}

/* Configuration Form */
#configuration {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-panel {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .button-row {
    justify-content: stretch;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 2rem 0.75rem;
  }

  textarea {
    min-height: 180px;
  }
}
