:root{
  --bg: #0b0d10;
  --card: #12151b;
  --muted: #a7b0be;
  --text: #f3f6fb;
  --line: rgba(255,255,255,.10);
  --accent: #00c853;
  --accent2: #00b04a;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: radial-gradient(1200px 600px at 30% 0%, #121a14 0%, var(--bg) 45%) no-repeat, var(--bg);
  color: var(--text);
}

.container{
  width: min(1100px, 92vw);
  margin: 32px auto;
}

.card{
  background: rgba(18,21,27,.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  overflow: hidden;
}

.header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.title{
  display:flex;
  flex-direction: column;
  gap: 4px;
}
.title h1{
  margin:0;
  font-size: 18px;
  letter-spacing: .2px;
}
.title p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: flex-end;
}

.input, .btn{
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.input::placeholder{ color: rgba(255,255,255,.45); }

.input:focus{
  border-color: rgba(0,200,83,.45);
  box-shadow: 0 0 0 4px rgba(0,200,83,.12);
}

.btn{
  cursor:pointer;
  font-weight: 700;
  background: var(--accent);
  border-color: transparent;
  color: #06120b;
  transition: .2s ease;
  padding: 0 14px;
}
.btn:hover{ background: var(--accent2); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover{
  border-color: rgba(0,200,83,.35);
  background: rgba(0,200,83,.10);
  transform: translateY(-1px);
}

.table-wrap{
  width:100%;
  overflow:auto;
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th, td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th{
  color: rgba(255,255,255,.85);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.03);
  position: sticky;
  top: 0;
}

tbody tr:hover{
  background: rgba(255,255,255,.03);
}

.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,200,83,.25);
  background: rgba(0,200,83,.10);
  color: rgba(220,255,235,.95);
  font-size: 12px;
  font-weight: 700;
}

/* LOGIN */
.auth{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.auth-card{
  width: min(440px, 92vw);
  padding: 22px;
}
.auth-card h1{
  margin: 0 0 6px 0;
  font-size: 22px;
}
.auth-card p{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.alert{
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,80,80,.35);
  background: rgba(255,80,80,.12);
  color: rgba(255,220,220,.95);
  font-size: 14px;
}

/* Mobile: deixa tudo “stacked” e confortável */
@media (max-width: 640px){
  .header{ flex-direction: column; align-items: stretch; }
  .actions{ justify-content: stretch; }
  .input, .btn{ width: 100%; }
  table{ min-width: 760px; } /* continua scrollável */
}
