/* Tema preto e dourado — tipografia, layout e animações */
:root {
  --black: #0d0d0f;
  --gold: #d4af37;
  --gold-soft: #c9a535;
  --gray: #bfbfbf;
  --white: #f4f4f4;
  --accent: #111117;
  --success: #2ecc71;
  --danger: #e74c3c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--black); color: var(--white); font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #efc75e; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* Cabeçalho/Navegação */
header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(212,175,55,0.08), rgba(13,13,15,0.95));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212,175,55,0.25);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.5px;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7e27a, var(--gold));
  box-shadow: 0 0 18px rgba(212,175,55,0.5), inset 0 0 10px rgba(0,0,0,0.6);
}
.nav-links {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 12px; border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px; color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,175,55,0.22);
}

/* Hero / cartões */
.hero {
  padding: 40px 0 20px;
  text-align: center;
}
.hero h1 { font-size: 32px; margin-bottom: 8px; color: var(--gold); }
.hero p { color: var(--gray); }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(13,13,15,0.95));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeInUp 0.5s ease both;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 36px rgba(212,175,55,0.25);
}
.card h3 { color: var(--gold); margin-top: 0; }
.card .muted { color: var(--gray); }

/* Seções, títulos e linhas */
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 18px;
}
.section-title h2 { margin: 0; color: var(--gold); font-size: 22px; }
.hr {
  height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.6), rgba(212,175,55,0));
  border: 0; margin: 8px 0 18px;
}

/* Inputs e botões */
.input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #121218; color: var(--white);
  border: 1px solid rgba(212,175,55,0.35);
  outline: none; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.input:focus, textarea:focus, select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #f7e27a, var(--gold));
  color: #111; border: 1px solid #b38b2e; font-weight: 600;
  box-shadow: 0 10px 24px rgba(212,175,55,0.25);
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,175,55,0.28); }
.btn.secondary {
  background: #121218; color: var(--white); border-color: rgba(212,175,55,0.4);
}
.btn.danger {
  background: linear-gradient(180deg, #ff9a8b, #e74c3c); color: #fff; border-color: #a8362a;
}

/* Tabelas/Lista */
.table {
  width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px;
}
.table th, .table td {
  padding: 12px; border-bottom: 1px solid rgba(212,175,55,0.2);
}
.table th { color: var(--gold); text-align: left; background: rgba(212,175,55,0.08); }
.table tr:hover td { background: rgba(212,175,55,0.06); }

/* Badge e chips */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(212,175,55,0.18); color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
}

/* Footer */
footer {
  padding: 24px; text-align: center; color: var(--gray);
  border-top: 1px solid rgba(212,175,55,0.25);
  background: linear-gradient(180deg, rgba(13,13,15,0.95), rgba(212,175,55,0.08));
}

/* Login */
.login-wrapper {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(212,175,55,0.08), transparent 60%),
    radial-gradient(1000px 500px at 80% 110%, rgba(212,175,55,0.08), transparent 60%),
    var(--black);
}
.login-card {
  width: 100%; max-width: 420px; padding: 24px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(13,13,15,0.95));
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  animation: fadeIn 0.6s ease both;
}
.login-card h1 { margin-top: 0; color: var(--gold); }
.login-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: fadeInUp 0.45s ease both; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.15s; }
.stagger > *:nth-child(5) { animation-delay: 0.2s; }

/* Utilitários */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.flex { display: flex; gap: 12px; align-items: center; }
.right { margin-left: auto; }
.muted { color: var(--gray); }
.small { font-size: 0.92rem; }
.kbd { padding: 2px 6px; border: 1px solid rgba(255,255,255,0.2); border-bottom-width: 2px; border-radius: 6px; font-size: 0.86rem; }
.hidden { display: none !important; }

/* Cards especiais */
.item-card img {
  border-radius: 10px; border: 1px solid rgba(212,175,55,0.25);
}
.item-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Campos editáveis */
.editable {
  background: #101015; border: 1px dashed rgba(212,175,55,0.5);
  padding: 12px; border-radius: 10px; color: var(--white);
}
