body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #111;
  color: #e0e0e0;
  padding: 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 2rem;
}

.container {
  max-width: 1400px;
  margin: auto;
}

/* Formulários */
.form-label {
  color: #bbb;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-select, .form-control {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #f0f0f0;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.form-select:focus, .form-control:focus {
  background-color: #222;
  border-color: #555;
  box-shadow: 0 0 0 0.15rem rgba(255,255,255,0.15);
}

/* Botões */
.btn {
  font-weight: 600;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

/* Tabelas */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  table-layout: auto;
  font-size: 0.9rem;
  border-collapse: collapse;
}

th, td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}

th {
  background-color: #222;
  color: #ddd;
  font-weight: 600;
  font-size: 0.92rem;
}

td {
  background-color: #181818;
}

tr:nth-child(even) td {
  background-color: #1b1b1b;
}

tr.table-success td {
  background-color: #1e3020;
  color: #b0ffb0;
  font-weight: 600;
}

/* Imagens */
table img {
  width: 38px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tooltip */
.tooltip-inner {
  background-color: #222;
  color: #f0f0f0;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: left;
  max-width: 280px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.tooltip.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #222;
}

/* Loading */
#loading {
  text-align: center;
  margin: 1rem 0;
  color: #ccc;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .form-select, .form-control {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

  table img {
    width: 32px;
  }

  th, td {
    font-size: 0.85rem;
  }
}
