@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --base-clr: #11121a;
  --line-clr: #42434a;
  --hover-clr: #222533;
  --text-clr: #e6e6ef;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #b0b3c1;
  --danger-clr: #ff6b6b;
}

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

html {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
}

main {
  padding: min(30px, 7%);
}

.container {
  border: 1px solid var(--line-clr);
  border-radius: 12px;
  background-color: var(--hover-clr);
  padding: 1.5rem;
  max-width: 520px;
  margin: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.header h1 {
  font-size: 1.5rem;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent-clr);
  text-underline-offset: 6px;
}

.bee {
  font-size: 2rem;
  line-height: 1;
}

#message {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--secondary-text-clr);
  min-height: 1.2em;
}

.actions-top {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.9rem;
  color: var(--secondary-text-clr);
}

small {
  font-size: 0.75rem;
  color: var(--secondary-text-clr);
}

input[type="text"],
input[type="number"],
select {
  background-color: var(--base-clr);
  color: var(--text-clr);
  border: 1px solid var(--line-clr);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-clr);
}

.row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--line-clr);
  margin: 0.25rem 0;
}

.btn-primary {
  width: 100%;
  background-color: var(--accent-clr);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #4a4fe6;
}

.btn-outline {
  background: transparent;
  color: var(--accent-clr);
  border: 1px solid var(--accent-clr);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--accent-clr);
  color: #fff;
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--secondary-text-clr);
  border: 1px solid var(--line-clr);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1.05rem;
  cursor: pointer;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  width: 100%;
  background: transparent;
  color: var(--danger-clr);
  border: 1px solid var(--danger-clr);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-danger:hover {
  background-color: var(--danger-clr);
  color: #111;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 10000;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--hover-clr);
  border: 1px solid var(--line-clr);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  z-index: 10001;
}

.modal h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.modal p {
  color: var(--secondary-text-clr);
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
    align-items: center;
  }

  main {
    padding: 2em 1em 60px 1em;
  }

  .container {
    padding: 1.25rem;
    margin: 0 auto;
  }

  .row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
