body {
  background-color: #f5f7fb;
  color: #1f2937;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.container {
  max-width: 1100px;
}

.app-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.app-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px 12px;
}

.app-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-brand-link {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.app-brand-link:hover,
.app-brand-link:focus {
  color: #111827;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-nav-link:hover,
.app-nav-link:focus {
  background: #eef2ff;
  color: #3730a3;
}

.app-nav-link.active {
  background: #1f2937;
  color: #ffffff;
}

.app-logout-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.app-logout-button:hover,
.app-logout-button:focus {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.app-logout-button.is-loading {
  opacity: 0.72;
}

.app-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px;
}

.app-page-title {
  margin: 0 0 16px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
}

.app-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card {
  border-color: #e5e7eb;
  border-radius: 8px;
}

.card-header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

.card-body {
  color: #1f2937;
}

.form-label {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.16);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  border-color: #3730a3;
  background: #3730a3;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #312e81;
  background: #312e81;
}

.btn-success {
  border-color: #047857;
  background: #047857;
}

.btn-success:hover,
.btn-success:focus {
  border-color: #065f46;
  background: #065f46;
}

.btn-danger {
  border-color: #dc2626;
  background: #dc2626;
}

.btn-danger:hover,
.btn-danger:focus {
  border-color: #b91c1c;
  background: #b91c1c;
}

.btn-outline-primary {
  border-color: #3730a3;
  color: #3730a3;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: #3730a3;
  background: #3730a3;
  color: #ffffff;
}

.list-group-item {
  border-color: #e5e7eb;
}

.table {
  color: #1f2937;
}

.table thead th {
  background: #1f2937;
  color: #ffffff;
}

.accordion-button {
  color: #111827;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #312e81;
  box-shadow: inset 0 -1px 0 #c7d2fe;
}

.session-user {
  color: #64748b;
  font-size: 13px;
}

table {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .app-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .app-logout-button {
    width: 100%;
    justify-content: center;
  }
}

.table td button {
  padding: 0.25rem 0.45rem;
}

.invisible {
  visibility: hidden;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.info-item {
  display: flex;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

.info-item strong {
  font-weight: 600;
}

/* DEBUG VISUAL (no altera layout) */
body::after {
  content: "styles.css cargado";
  display: none;
}
