/* SIMPES 4.0 Stage 24R Polish Micro
   Safe visual layer only. Does not redefine theme colors, sidebar gradients, chart colors, or Bootstrap variables. */

/* Soft background pattern behind content only, preserving existing colors */
.simpes-content,
.main-content,
.content-wrapper,
.app-content,
.admin-content,
main {
  position: relative;
}

.simpes-content::before,
.main-content::before,
.content-wrapper::before,
.app-content::before,
.admin-content::before,
main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image:
    radial-gradient(circle at 16px 16px, currentColor 1px, transparent 1.5px),
    radial-gradient(circle at 48px 48px, currentColor .8px, transparent 1.4px);
  background-size: 64px 64px;
}

.simpes-content > *,
.main-content > *,
.content-wrapper > *,
.app-content > *,
.admin-content > *,
main > * {
  position: relative;
  z-index: 1;
}

/* Micro glass effect: preserve existing card color, only add clarity and depth */
.card,
.dashboard-card,
.module-card,
.stat-card,
.info-card,
.summary-card {
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
  border-color: rgba(15, 23, 42, .075);
  backdrop-filter: saturate(115%) blur(2px);
  -webkit-backdrop-filter: saturate(115%) blur(2px);
}

.card:hover,
.dashboard-card:hover,
.module-card:hover,
.stat-card:hover,
.info-card:hover,
.summary-card:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
  transition: box-shadow .18s ease, transform .18s ease;
}

/* Keep cards compact: never force bigger card height */
.module-card .card-body,
.dashboard-card .card-body,
.stat-card .card-body,
.info-card .card-body,
.summary-card .card-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Better readability without changing palette */
.card-title,
.module-card h5,
.dashboard-card h5,
.stat-card h5,
.info-card h5,
.summary-card h5 {
  letter-spacing: -.015em;
}

.text-muted {
  color: rgba(71, 85, 105, .82) !important;
}

/* Tables/forms polish without changing existing colors */
.table {
  vertical-align: middle;
}

.table thead th {
  font-size: .82rem;
  letter-spacing: .015em;
  text-transform: none;
  border-bottom-color: rgba(15, 23, 42, .08);
}

.form-control,
.form-select,
.input-group-text {
  border-radius: .75rem;
}

.btn {
  border-radius: .75rem;
}

.badge {
  border-radius: 999px;
  padding: .42em .68em;
  font-weight: 600;
}

/* Pagination safety only; no color override */
.pagination svg {
  width: 1rem !important;
  height: 1rem !important;
}

.pagination .page-link {
  border-radius: .65rem;
  margin: 0 .12rem;
}

/* Chart containers: do not manipulate chart/canvas; only give stable visual shell */
.chart-card,
.chart-panel,
.card:has(canvas) {
  overflow: hidden;
}

.chart-card canvas,
.chart-panel canvas,
.card canvas {
  max-width: 100%;
}

/* Mobile micro spacing */
@media (max-width: 768px) {
  .card,
  .dashboard-card,
  .module-card,
  .stat-card {
    border-radius: .9rem;
  }

  .card-body {
    padding: .9rem;
  }

  .btn {
    white-space: normal;
  }
}
