/* Variáveis e Reset */
:root {
  --bg:#0f1724; 
  --card:#0b1220; 
  --muted:#9aa7bf; 
  --accent:#7c5cff; 
  --accent-2:#00d4ff; 
  --surface:#0b1220; 
  --text:#e6eef8;
}
* { box-sizing:border-box; margin:0; padding:0; }
body {
  font-family: 'Ubuntu', sans-serif;
  background: linear-gradient(180deg,#071028 0%, #071a2b 100%);
  color: var(--text); 
  padding: 24px;
  min-height: 100vh;
}

/* Container centralizado */
.container { 
  max-width: 980px; 
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
header { 
  display:flex; 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 8px; 
}
h1 { font-size: 24px; }

/* Card */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow:0 6px 18px rgba(2,6,23,0.6);
}

/* Formulário */
form { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
  gap: 10px; 
  align-items: end; 
}
label { font-size: 13px; color: var(--muted); }
input, select, textarea, button {
  background:#071428; 
  border:1px solid rgba(255,255,255,0.04);
  color: var(--text); 
  padding: 8px; 
  border-radius: 8px;
  font-size: 14px;
}
select {
  appearance: none;
  padding-right: 36px; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

/* Tabela */
.items-list table {
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 10px;
}
th, td { 
  padding: 10px; 
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 14px; 
  text-align: left;
}
th { 
  color: var(--muted); 
  font-size: 13px; 
}
tr:nth-child(even) { background: rgba(255,255,255,0.03); }

/* Botões */
.btn { 
  cursor: pointer; 
  font-weight: bold; 
  transition:0.2s; 
  padding: 8px 12px; 
  border-radius: 8px; 
  border: none;
}
.btn-primary { 
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); 
  color: #021124; 
}
.btn-success {
  background: #28a745;
  color: #fff;
}
.btn:hover { opacity: 0.9; transform: translateY(-2px); }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.right { justify-content: flex-end; }

/* Texto e botão centralizado */
.central-btn {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 12px; 
  margin-top: 20px;
}
.central-btn span { color: var(--text); font-size: 15px; text-align: center; max-width: 400px; }
.central-btn a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; box-shadow:0 4px 12px rgba(0,0,0,0.5); }

/* Modal */
.modal {
  display: none; position: fixed; z-index: 999; left:0; top:0; width:100%; height:100%;
  background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center;
}
.modal-content {
  background-color: var(--card);
  padding: 20px; border-radius: 10px; text-align: center;
  max-width: 350px; width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.modal-content img { width: 200px; height: 200px; margin: 10px 0; border-radius: 15px; }
.modal-content button { margin: 10px 5px 0 5px; }

/* Footer */
footer {
  text-align: center;
  padding: 12px;
  background: #071428;
  color: var(--muted);
  font-size: 14px;
  position: sticky;
  bottom: 0;
}

/* Responsividade */
@media (max-width: 700px){
  form { grid-template-columns: 1fr; }
  th, td { font-size: 13px; padding: 6px; }
  h1 { font-size: 18px; }
}
@media (max-width: 500px){
  .central-btn span { font-size: 14px; }
  .central-btn a.btn { padding: 8px 16px; font-size: 14px; }
}
