.page-heading {
  margin-bottom: 1.6rem;
}

.page-heading h3,
.page-title h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.page-heading p,
.page-title p {
  color: var(--muted);
}

.page-content {
  min-width: 0;
}

.card {
  --bs-card-color: var(--text);
  --bs-card-bg: rgba(12, 19, 36, 0.76);
  --bs-card-border-color: var(--line);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--bs-card-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.card-header {
  border-bottom-color: var(--line);
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.018);
}

.card-body {
  padding: 1.25rem;
}

.font-semibold {
  font-weight: 650 !important;
}

.font-extrabold {
  font-weight: 850 !important;
}

.py-4-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.text-muted {
  color: var(--muted) !important;
}

.form-label {
  margin-bottom: 0.45rem;
  color: #c8d7e8;
  font-size: 0.84rem;
  font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--line-strong);
  color: var(--text);
  background-color: rgba(7, 13, 27, 0.72);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(75, 217, 255, 0.56);
  color: var(--text);
  background-color: rgba(9, 17, 33, 0.94);
  box-shadow: 0 0 0 0.22rem rgba(75, 217, 255, 0.09);
}

.form-control::placeholder {
  color: #61738d;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  color: #8292a9;
  background-color: rgba(25, 35, 54, 0.62);
}

.form-check-input {
  border-color: var(--line-strong);
  background-color: rgba(7, 13, 27, 0.8);
}

.form-check-input:checked {
  border-color: #35b9ee;
  background-color: #35b9ee;
}

.btn {
  border-radius: 11px;
  font-weight: 720;
}

.btn-primary {
  --bs-btn-color: #04111c;
  --bs-btn-bg: #4bd9ff;
  --bs-btn-border-color: #4bd9ff;
  --bs-btn-hover-color: #03101b;
  --bs-btn-hover-bg: #75e4ff;
  --bs-btn-hover-border-color: #75e4ff;
  --bs-btn-active-color: #03101b;
  --bs-btn-active-bg: #27b8ee;
  --bs-btn-active-border-color: #27b8ee;
  box-shadow: 0 10px 30px rgba(37, 165, 231, 0.16);
}

.btn-outline-secondary {
  --bs-btn-color: #a7b7cc;
  --bs-btn-border-color: rgba(148, 163, 184, 0.28);
  --bs-btn-hover-color: #f2fbff;
  --bs-btn-hover-bg: rgba(76, 111, 151, 0.24);
  --bs-btn-hover-border-color: rgba(123, 187, 225, 0.38);
  --bs-btn-active-bg: rgba(76, 111, 151, 0.32);
}

.btn-block {
  display: block;
  width: 100%;
}

.form-control-xl {
  min-height: 54px;
  border-radius: 13px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.has-icon-left {
  position: relative;
}

.has-icon-left .form-control {
  padding-left: 3rem;
}

.form-control-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 3rem;
  height: 100%;
  place-items: center;
  color: #70839e;
  pointer-events: none;
}

.table {
  --bs-table-color: #cbd9e8;
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  --bs-table-hover-color: #edf8ff;
  --bs-table-hover-bg: rgba(75, 217, 255, 0.04);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.85rem 0.9rem;
}

.table thead th {
  color: #8292a9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-responsive {
  border-radius: 13px;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0.48em 0.7em;
  font-weight: 750;
}

.alert {
  border-radius: 14px;
}

.alert-light-danger {
  border-color: rgba(251, 135, 152, 0.26);
  color: #ffb4c0;
  background: rgba(161, 30, 55, 0.16);
}

.alert-light-success {
  border-color: rgba(112, 229, 176, 0.24);
  color: #a1f1ce;
  background: rgba(25, 132, 91, 0.14);
}

.alert-light-warning {
  border-color: rgba(244, 202, 100, 0.26);
  color: #ffe09a;
  background: rgba(153, 105, 21, 0.15);
}

.alert-light-info,
.alert-light-primary {
  border-color: rgba(75, 217, 255, 0.24);
  color: #a9edff;
  background: rgba(25, 116, 165, 0.15);
}

.bg-light-secondary {
  color: #b8c6d8 !important;
  background: rgba(113, 131, 157, 0.17) !important;
}

.bg-light-primary,
.bg-light-info {
  color: #a8ecff !important;
  background: rgba(54, 189, 245, 0.16) !important;
}

.bg-light-success {
  color: #a1f1ce !important;
  background: rgba(43, 177, 124, 0.15) !important;
}

.bg-light-warning {
  color: #ffe09a !important;
  background: rgba(185, 128, 28, 0.16) !important;
}

.stats-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  font-size: 1.25rem;
}

.stats-icon.blue {
  background: linear-gradient(135deg, #2488ff, #33c3f5);
}

.stats-icon.green {
  background: linear-gradient(135deg, #149d70, #4fd29d);
}

.stats-icon.red {
  background: linear-gradient(135deg, #d14362, #f1788c);
}

.stats-icon.purple {
  background: linear-gradient(135deg, #7257d9, #9c7ff0);
}

.accordion-item,
.list-group-item {
  border-color: var(--line);
  color: var(--text);
  background: rgba(11, 18, 34, 0.72);
}

.accordion-button {
  color: var(--text);
  background: rgba(14, 23, 42, 0.88);
}

.accordion-button:not(.collapsed) {
  color: #a7ecff;
  background: rgba(29, 119, 170, 0.17);
  box-shadow: inset 0 -1px 0 var(--line);
}

.nav-tabs {
  border-bottom-color: var(--line);
}

.nav-tabs .nav-link {
  border-radius: 10px 10px 0 0;
  color: var(--muted);
}

.nav-tabs .nav-link.active {
  border-color: var(--line) var(--line) var(--surface-strong);
  color: #dff7ff;
  background: var(--surface-strong);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge--warning {
  border-color: rgba(252, 211, 77, 0.4);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  color: var(--text);
  background-color: #0f172a;
}

select option:checked {
  color: #031522;
  background-color: var(--cyan);
}

select option:disabled {
  color: var(--muted-2);
}

/* Shared paginated data table -- used by list-heavy screens (Ingesta, Fuentes, Contenido, Social Lab, Programacion, Periodista) */

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table td.data-table__wrap-cell {
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.data-table thead th {
  position: sticky;
  top: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 17, 31, 0.94);
}

.data-table tbody tr:hover {
  background: rgba(103, 232, 249, 0.05);
}

.data-table tbody tr.is-paged-out,
.data-table tbody tr[data-search-hidden] {
  display: none;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td.actions-cell {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.26);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.icon-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.58);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.table-pagination__info {
  color: var(--muted);
  font-size: 13px;
}

.table-pagination__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination__controls button,
.table-pagination__controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.26);
  font-weight: 900;
  cursor: pointer;
}

.table-pagination__controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.table-pagination__controls button:not(:disabled):hover,
.table-pagination__controls a:hover {
  border-color: rgba(103, 232, 249, 0.58);
}

.swal2-popup.atlas-alert {
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 22rem),
    #07111f;
  box-shadow: var(--shadow);
}

.swal2-popup.atlas-alert .swal2-title {
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.swal2-popup.atlas-alert .swal2-html-container {
  color: var(--muted);
}

.swal2-popup.atlas-alert .swal2-confirm,
.swal2-popup.atlas-alert .swal2-cancel {
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 900;
}

.swal2-popup.atlas-alert .swal2-confirm {
  color: #031522;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.swal2-popup.atlas-alert .swal2-cancel {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
}
