:root {
  --pg-bg: #050812;
  --pg-bg-alt: #0a1020;
  --pg-panel: rgba(12, 18, 34, 0.9);
  --pg-panel-border: rgba(120, 159, 255, 0.16);
  --pg-card: rgba(11, 17, 30, 0.92);
  --pg-card-soft: rgba(17, 24, 42, 0.9);
  --pg-text: #f4f8ff;
  --pg-text-soft: #9fafcc;
  --pg-accent: #4e8cff;
  --pg-accent-2: #35d1c4;
  --pg-danger: #ff7f96;
  --pg-warning: #f6bf58;
  --pg-success: #45d39c;
  --pg-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  --pg-radius-xl: 32px;
  --pg-radius-lg: 24px;
  --pg-radius-md: 16px;
  --pg-radius-sm: 12px;
  --pg-input-border: rgba(124, 149, 201, 0.24);
  --pg-grid-gap: 28px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61, 104, 255, 0.18), transparent 34%),
    radial-gradient(circle at right 18%, rgba(53, 209, 196, 0.12), transparent 24%),
    linear-gradient(180deg, #050812 0%, #080d18 48%, #05070d 100%);
  color: var(--pg-text);
}

.loader-wrapper {
  display: none !important;
}

body.patanegra-login,
body.patanegra-dashboard {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.p-0 {
  padding: 0;
}

.w-100,
.btn-block {
  width: 100%;
}

.m-auto {
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

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

.mt-3 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center,
.align-items-lg-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.fw-bold {
  font-weight: 700;
}

.position-relative {
  position: relative;
}

.small,
small {
  font-size: 0.82rem;
}

.ms-lg-auto {
  margin-left: auto;
}

.img-fluid {
  height: auto;
}

.login-shell,
.container-fluid {
  width: 100%;
}

.login-shell {
  min-height: 100vh;
}

.login-shell > .row,
.container-fluid > .row {
  min-height: 100vh;
  margin: 0;
}

.col-xl-7,
.col-xl-5,
.col-12,
.col-sm-6,
.col-md-6,
.col-lg-4,
.col-xl-6,
.col-xl-12,
.col-sm-12 {
  position: relative;
  width: 100%;
}

@media (min-width: 1200px) {
  .col-xl-7 {
    flex: 0 0 58%;
    max-width: 58%;
  }

  .col-xl-5 {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .col-xl-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-xl-12,
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.login_one_image {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(78, 140, 255, 0.34), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(53, 209, 196, 0.18), transparent 26%),
    linear-gradient(155deg, #0a1431 0%, #08111f 48%, #04070f 100%);
}

.page-body .row > .col-12,
.page-body .row > .col-sm-6,
.page-body .row > .col-md-6,
.page-body .row > .col-lg-4,
.page-body .row > .col-xl-6,
.page-body .row > .col-xl-12,
.page-body .row > .col-sm-12 {
  padding: 14px;
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: flex-end;
  padding: 56px 44px;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.login-visual::before {
  inset: 10% auto auto 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(78, 140, 255, 0.45) 0%, rgba(78, 140, 255, 0) 70%);
}

.login-visual::after {
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(53, 209, 196, 0.28) 0%, rgba(53, 209, 196, 0) 72%);
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-visual-logo {
  width: clamp(140px, 24vw, 240px);
  margin-bottom: 28px;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.4));
}

.login-visual-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.login-visual-copy p {
  margin: 0;
  color: rgba(244, 248, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.login-card {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.84) 0%, rgba(4, 8, 18, 0.96) 100%);
}

.login-card > div {
  width: min(100%, 480px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img + img {
  display: none;
}

.login-main {
  margin-top: 20px;
}

.theme-form {
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.92) 0%, rgba(10, 16, 28, 0.96) 100%);
  border: 1px solid var(--pg-panel-border);
  border-radius: var(--pg-radius-xl);
  box-shadow: var(--pg-shadow);
  padding: 34px 30px;
  backdrop-filter: blur(14px);
}

.theme-form h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.theme-form p {
  margin: 0 0 28px;
  color: var(--pg-text-soft);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 18px;
}

.col-form-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-input {
  position: relative;
}

.form-control {
  width: 100%;
  border: 1px solid var(--pg-input-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control::placeholder {
  color: rgba(159, 175, 204, 0.54);
}

.form-control:focus {
  border-color: rgba(78, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(78, 140, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.show-hide {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--pg-text-soft);
  font-size: 0.84rem;
  cursor: pointer;
  user-select: none;
}

.show-hide span::before {
  content: "Show";
}

.show-hide span.show::before {
  content: "Show";
}

.show-hide span:not(.show)::before {
  content: "Hide";
}

.checkbox-solid-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pg-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-select {
  width: 100%;
  border: 1px solid var(--pg-input-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 12px 14px;
  outline: none;
}

.form-select:focus {
  border-color: rgba(78, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(78, 140, 255, 0.14);
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pg-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pg-accent) 0%, #6d73ff 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(78, 140, 255, 0.28);
}

.btn-outline-primary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  border: 1px solid rgba(120, 159, 255, 0.18);
}

.btn-success {
  background: rgba(69, 211, 156, 0.16);
  color: #bbffe2;
  border: 1px solid rgba(69, 211, 156, 0.3);
}

.btn-warning {
  background: rgba(246, 191, 88, 0.16);
  color: #ffe8b7;
  border: 1px solid rgba(246, 191, 88, 0.32);
}

.btn-info {
  background: rgba(78, 140, 255, 0.16);
  color: #d8e3ff;
  border: 1px solid rgba(78, 140, 255, 0.32);
}

.page-wrapper {
  min-height: 100vh;
}

.page-body-wrapper {
  min-height: 100vh;
}

.page-body {
  padding: 32px 0 48px;
}

.container-fluid {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding: 0 24px;
}

.page-title {
  margin-bottom: 22px;
}

.page-title h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.page-title h2 img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.page-title .btn {
  margin: 0 10px 10px 0;
}

.page-title .btn i {
  font-size: 0.92rem;
}

.card {
  height: 100%;
  border: 1px solid rgba(120, 159, 255, 0.14);
  border-radius: var(--pg-radius-lg);
  background: linear-gradient(180deg, var(--pg-card-soft) 0%, var(--pg-card) 100%);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.card-header {
  padding: 22px 24px 0;
}

.card-header h3,
.card-header h4 {
  margin: 0;
}

.card-body {
  padding: 22px 24px 24px;
}

.list-group,
.list-group-numbered {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-group-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(120, 159, 255, 0.1);
  color: var(--pg-text);
}

.list-group-item:last-child {
  border-bottom: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

#status-message {
  margin-bottom: 16px;
}

.alert {
  border-radius: var(--pg-radius-md);
  border: 1px solid transparent;
  padding: 14px 16px;
}

.alert-danger {
  background: rgba(255, 127, 150, 0.14);
  border-color: rgba(255, 127, 150, 0.22);
  color: #ffd5de;
}

.alert-success {
  background: rgba(69, 211, 156, 0.14);
  border-color: rgba(69, 211, 156, 0.22);
  color: #d3ffee;
}

.alert-info {
  background: rgba(78, 140, 255, 0.14);
  border-color: rgba(78, 140, 255, 0.22);
  color: #d9e4ff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-primary,
.badge-info {
  background: rgba(78, 140, 255, 0.18);
  color: #d8e3ff;
}

.badge-success {
  background: rgba(69, 211, 156, 0.18);
  color: #cbffea;
}

.badge-warning {
  background: rgba(246, 191, 88, 0.18);
  color: #ffe8b7;
}

.badge-danger {
  background: rgba(255, 127, 150, 0.18);
  color: #ffd5de;
}

.badge-secondary {
  background: rgba(159, 175, 204, 0.18);
  color: #d8def0;
}

.badge-light-primary {
  background: rgba(78, 140, 255, 0.12);
  color: #dce6ff;
}

.badge-light-success {
  background: rgba(69, 211, 156, 0.12);
  color: #cbffea;
}

.badge-light-warning {
  background: rgba(246, 191, 88, 0.12);
  color: #ffe9bc;
}

.badge-light-danger {
  background: rgba(255, 127, 150, 0.12);
  color: #ffd6df;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--pg-text);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(120, 159, 255, 0.1);
  vertical-align: middle;
}

.table thead th {
  color: var(--pg-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.align-middle td,
.align-middle th {
  vertical-align: middle;
}

code {
  color: #d6e1ff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px 6px;
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100% !important;
  color: var(--pg-text);
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 1px solid rgba(120, 159, 255, 0.18) !important;
  color: var(--pg-text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

table.dataTable tbody td {
  border-top: 1px solid rgba(120, 159, 255, 0.08);
  background: transparent !important;
}

table.dataTable tbody tr:hover td {
  background: rgba(78, 140, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--pg-text-soft) !important;
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(120, 159, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg-text);
  padding: 8px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-buttons .dt-button {
  border: 1px solid rgba(120, 159, 255, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--pg-text) !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dt-buttons .dt-button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(78, 140, 255, 0.18) !important;
  color: #fff !important;
}

.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.55;
}

.footer {
  height: 24px;
}

@media (max-width: 1199.98px) {
  .login_one_image {
    min-height: 320px;
  }

  .login-visual {
    align-items: center;
    text-align: center;
  }

  .login-visual-copy {
    max-width: 560px;
  }
}

@media (max-width: 767.98px) {
  .login-card {
    padding: 20px;
  }

  .theme-form {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .login-visual {
    padding: 36px 24px;
  }

  .container-fluid {
    padding: 0 16px;
  }

  .page-body {
    padding-top: 24px;
  }

  .page-title h2 {
    font-size: 1.4rem;
  }

  .flex-sm-row,
  .flex-lg-row {
    flex-direction: column;
  }

  .card-header,
  .card-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .flex-lg-row {
    flex-direction: row;
  }
}
