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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background: #f5f7fa;
}

/* ---------- Login ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
}

.login-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 380px;
}

.login-card h1 { font-size: 20px; color: #2c5282; margin-bottom: 4px; }
.login-card .sub { font-size: 13px; color: #666; margin-bottom: 20px; }

.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2c5282;
  margin: 12px 0 4px;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
}

.login-card input:focus { outline: 2px solid #3182ce; border-color: #3182ce; }

.login-card button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #3182ce;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover { background: #2c5282; }

/* ---------- Dashboard ---------- */
.topbar {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 { font-size: 18px; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #fff; font-size: 13px; text-decoration: none; opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

.wrap { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.summary {
  background: #e6f2ff;
  border-left: 4px solid #3182ce;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #2c5282;
  margin-bottom: 18px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.1s, filter 0.15s;
}

.btn:hover { filter: brightness(0.92); }
.btn:active { transform: scale(0.98); }
.btn .badge { background: rgba(255,255,255,0.25); border-radius: 10px; padding: 1px 8px; font-size: 12px; }

.btn-poster { background: #805ad5; }
.btn-mat    { background: #319795; }
.btn-all    { background: #3182ce; }

.btn-disabled { background: #cbd5e0 !important; pointer-events: none; }

.note { margin-bottom: 20px; }
.note code { background: #edf2f7; padding: 1px 5px; border-radius: 3px; font-size: 12px; }

.muted { color: #888; font-size: 13px; }

/* ---------- Table ---------- */
table.orders {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 13px;
}

.orders th {
  text-align: left;
  background: #edf2f7;
  color: #2c5282;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.orders td { padding: 10px 12px; border-top: 1px solid #edf2f7; vertical-align: top; }
.orders td a { color: #3182ce; word-break: break-all; }
.orders .item-name { max-width: 380px; }
.orders .row-skip { opacity: 0.55; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.pill-poster { background: #805ad5; }
.pill-mat    { background: #319795; }
.pill-other  { background: #a0aec0; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

@media (max-width: 700px) {
  .orders th:nth-child(5), .orders td:nth-child(5) { display: none; }
  .btn { flex: 1; justify-content: center; }
}
