* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: linear-gradient(180deg, #0f1724, #020617);
  color: #e6eef8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 680px;
  max-width: 95%;
}

.card {
  background: linear-gradient(180deg, #0b1220, #071029);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(2,6,23,0.6);
}

h1, h2 {
  margin-top: 0;
  text-align: center;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

p {
  color: #9ca3af;
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #020617;
  color: #e6eef8;
  font-size: 0.95rem;
}

input::placeholder {
  color: #6b7280;
}

button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  margin: 6px;
}

button.secondary {
      position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
  border: none;
  cursor: pointer;

}

button.danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

button:hover {
  filter: brightness(1.1);
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* ===== TABLES (ADMIN) ===== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th, td {
  padding: 8px;
  text-align: left;
}

th {
  color: #9ca3af;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

td {
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}

hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 20px 0;
}

.error {
  color: #f87171;
  font-size: 0.9rem;
  text-align: center;
}

.card {
  text-align: center;
}

.card > button {
  display: inline-block;
}

#admin-screen button {
  display: inline-block;
}

table button {
  margin: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
}

table {
  text-align: left;
}

.logo {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}