/* GameTime admin styles - shared across login, list, and edit pages. */

* {
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e8eaed;
  margin: 0;
  min-height: 100vh;
}
a {
  color: #ff8899;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #161a22;
  border-bottom: 1px solid #2a2f3a;
}
.topbar .brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.topbar .brand .accent {
  color: #ff6680;
}
.topbar .user {
  font-size: 13px;
  color: #9aa3b2;
  display: flex;
  align-items: center;
  gap: 12px;
}
h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  margin: 24px 0 12px;
}
.subtitle {
  color: #9aa3b2;
  margin-bottom: 24px;
}
.card {
  background: #161a22;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #2a2f3a;
}
label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #9aa3b2;
  text-transform: uppercase;
  margin-bottom: 6px;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #2a2f3a;
  background: #0b0d12;
  color: #e8eaed;
  font-size: 15px;
  font-family: inherit;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6680;
}
button {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
button.primary {
  background: #ff6680;
  color: white;
}
button.primary:hover {
  background: #e84966;
}
button.primary:disabled {
  background: #5a3a45;
  cursor: not-allowed;
}
button.secondary {
  background: transparent;
  color: #c0c5d0;
  border: 1px solid #2a2f3a;
}
button.secondary:hover {
  background: #1f2532;
  color: white;
}
button.danger {
  background: transparent;
  color: #ff8899;
  border: 1px solid #6a2e3c;
}
button.danger:hover {
  background: #2c1116;
  color: #ffaabb;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row .col {
  flex: 1;
  min-width: 200px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.actions.right {
  justify-content: flex-end;
}
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 380px;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  background: #1f6f3a;
  color: white;
}
.toast.error {
  background: #8a1f2c;
  color: white;
}
.toast.info {
  background: #2a3f7a;
  color: white;
}

.list {
  display: grid;
  gap: 12px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #161a22;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.list-item:hover {
  border-color: #ff6680;
  background: #1c2230;
}
.list-item .meta {
  font-size: 12px;
  color: #9aa3b2;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #2a2f3a;
  color: #c0c5d0;
  margin-right: 6px;
}
.badge.master {
  background: #6a2e3c;
  color: #ffaabb;
}
.help {
  background: #1a1e28;
  border-left: 3px solid #ff6680;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #c0c5d0;
  font-size: 14px;
  line-height: 1.5;
}
.help code {
  background: #0b0d12;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
}
.empty {
  color: #6e7686;
  text-align: center;
  padding: 32px;
  font-style: italic;
}
.divider {
  height: 1px;
  background: #2a2f3a;
  margin: 24px 0;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #2a2f3a;
  margin-bottom: 20px;
}
.tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #9aa3b2;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: #ff8899;
  border-bottom-color: #ff6680;
}
.tab:hover:not(.active) {
  color: #c0c5d0;
}

@media (max-width: 700px) {
  .container {
    padding: 16px;
  }
  h1 {
    font-size: 22px;
  }
}
