* {
  box-sizing: border-box;
}
body {
  background: #f9fafb;
  color: #111827;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  margin: 0;
}
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.layout .sidebar {
  background: #1e293b;
  color: #94a3b8;
  flex-shrink: 0;
  padding: 0;
  width: 220px;
}
.layout .sidebar .sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  display: block;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 20px;
  text-align: center;
}
.layout .sidebar .sidebar-brand:hover {
  text-decoration: none;
}
.layout .sidebar nav {
  padding: 12px 0;
}
.layout .sidebar nav a {
  color: #94a3b8;
  display: block;
  font-size: 13px;
  padding: 9px 20px;
  transition: background 0.15s;
}
.layout .sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  text-decoration: none;
}
.layout .sidebar nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-weight: 500;
}
.layout .sidebar nav .nav-section {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 16px;
  padding: 6px 20px 4px;
  text-transform: uppercase;
}
.layout .main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
}
.layout .main .page-header {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 16px;
}
.layout .main .page-header h1 {
  flex: 1;
  font-size: 20px;
  margin: 0;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}
.card .card-header {
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  padding: 14px 20px;
}
.card .card-body {
  padding: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
table th {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  text-transform: uppercase;
}
table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 11px 14px;
  vertical-align: middle;
}
table tr:last-child td {
  border-bottom: none;
}
table tr:hover td {
  background: #f9fafb;
}
.btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  text-align: center;
  transition: background 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn.btn-primary:hover {
  background: #1d4ed8;
}
.btn.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn.btn-danger:hover {
  background: #bb1e1e;
}
.btn.btn-secondary {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.btn.btn-secondary:hover {
  background: #f9fafb;
}
.btn.btn-success {
  background: #16a34a;
  color: #fff;
}
.btn.btn-success:hover {
  background: #117f3a;
}
.btn.btn-sm {
  font-size: 12px;
  padding: 4px 10px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  color: #111827;
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  padding: 8px 12px;
  transition: border 0.15s;
  width: 100%;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group .field-hint {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}
.alert {
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 16px;
}
.alert.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.alert.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
}
.badge.badge-gold {
  background: #fef3c7;
  color: #92400e;
}
.badge.badge-super-gold {
  background: #fde68a;
  color: #78350f;
}
.badge.badge-published {
  background: #dcfce7;
  color: #166534;
}
.badge.badge-draft {
  background: #f3f4f6;
  color: #6b7280;
}
.badge.badge-archived {
  background: #f3f4f6;
  color: #6b7280;
}
.badge.badge-active {
  background: #dcfce7;
  color: #166534;
}
.badge.badge-completed {
  background: #eff6ff;
  color: #1e40af;
}
.login-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.login-wrap .login-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 36px 40px;
  width: 380px;
}
.login-wrap .login-box h1 {
  font-size: 22px;
  margin-bottom: 6px;
  margin-top: 0;
}
.login-wrap .login-box .login-sub {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 24px;
}
.actions {
  display: flex;
  gap: 8px;
}
.meta {
  color: #6b7280;
  font-size: 12px;
}
.empty-state {
  color: #6b7280;
  padding: 48px 20px;
  text-align: center;
}
.empty-state p {
  margin: 8px 0 16px;
}
