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

body {
  background: #0d0d14;
  color: #d4d4d4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

h1 { color: #c9a227; font-size: 24px; }
h2 { color: #a08020; font-size: 18px; margin: 20px 0 10px; border-bottom: 1px solid #222; padding-bottom: 6px; }
h3 { color: #888; font-size: 16px; margin: 20px 0 8px; }

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

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #c9a227;
  color: #0a0a0f;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #ddb830; text-decoration: none; }
.btn-muted { background: #2a2a3a; color: #aaa; }
.btn-muted:hover { background: #3a3a4a; }
.btn-danger { background: #8b1a1a; color: #eee; }
.btn-danger:hover { background: #a02020; }
.btn-sm { padding: 4px 10px; font-size: 12px; background: #2a2a3a; color: #aaa; border: none; border-radius: 4px; cursor: pointer; }
.btn-sm:hover { background: #3a3a4a; }

.alert {
  background: #3a1a1a;
  border: 1px solid #5a2a2a;
  color: #f88;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success {
  background: #1a2a1a;
  border-color: #2a4a2a;
  color: #8f8;
}

.muted { color: #666; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
th {
  background: #16161e;
  color: #c9a227;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #2a2a3a;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a26;
  font-size: 14px;
}
tr:nth-child(even) { background: #0f0f18; }
.row-inactive td { opacity: 0.4; }
.actions a { margin-right: 8px; font-size: 13px; }

/* Tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-active { background: #1a3a1a; color: #4caf50; }
.tag-draft { background: #2a2a1a; color: #aaa; }
.tag-disabled { background: #3a1a1a; color: #f44336; }
.tag-easy { background: #1a3a1a; color: #4caf50; }
.tag-medium { background: #3a3a1a; color: #ff9800; }
.tag-hard { background: #3a1a1a; color: #f44336; }

/* Forms */
form { margin-bottom: 16px; }
label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #888;
  font-weight: 600;
}
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  background: #16161e;
  border: 1px solid #2a2a3a;
  border-radius: 6px;
  color: #e8e8e8;
  font-size: 15px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c9a227;
}
textarea { resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.check-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.check-row input[type="checkbox"] { width: auto; margin: 0; }

.secret-display {
  display: block;
  padding: 8px 12px;
  background: #0a0a0f;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  font-size: 16px;
  word-break: break-all;
  margin-top: 8px;
  color: #8f8;
  user-select: all;
}

.section { margin-top: 32px; padding-top: 16px; border-top: 1px solid #222; }
.section ul { list-style: none; padding: 0; }
.section li { padding: 4px 0; }

/* Stat cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: #151520;
  border: 1px solid #252535;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.stat-card .value { font-size: 26px; font-weight: 700; color: #c9a227; }
.stat-card .label { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}

/* Login */
.login-wrap {
  max-width: 380px;
  margin: 100px auto;
  padding: 32px;
  background: #151520;
  border: 1px solid #252535;
  border-radius: 12px;
}
.login-wrap h1 {
  text-align: center;
  margin-bottom: 24px;
}
