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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #e8e8e8;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

a { color: #7eb8f7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login card */
.card {
  width: 100%;
  max-width: 380px;
  margin-top: 10vh;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 2rem;
}

.card h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card label span {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="password"],
input[type="url"] {
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
  color: #e8e8e8;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  transition: border-color 0.15s;
}

input:focus {
  outline: none;
  border-color: #555;
}

button {
  background: #fff;
  border: none;
  border-radius: 5px;
  color: #000;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: background 0.15s;
}

button:hover { background: #ddd; }

.btn-secondary {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  font-weight: 400;
  padding: 0.4rem 0.9rem;
}

.btn-secondary:hover { background: #222; color: #e8e8e8; }

.btn-danger {
  background: transparent;
  border: 1px solid #5a1a1a;
  color: #e05555;
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.btn-danger:hover { background: #2a0a0a; }

/* Error */
.error {
  background: #2a0a0a;
  border: 1px solid #5a1a1a;
  border-radius: 5px;
  color: #e05555;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}

/* Admin panel */
.panel {
  width: 100%;
  max-width: 800px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid #222;
  margin-bottom: 2rem;
}

.panel-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.panel-section {
  margin-bottom: 2.5rem;
}

.panel-section h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.form-inline {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-inline input {
  flex: 1;
  min-width: 140px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  color: #666;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222;
}

td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

.empty {
  color: #555;
  font-size: 0.9rem;
  padding: 1rem 0;
}
