@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Roboto/Roboto-Light.ttf'),
    url('../fonts/Roboto/Roboto-Light.tff');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Roboto/Roboto-Regular.ttf'),
    url('../fonts/Roboto/Roboto-Regular.tff');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/Roboto/Roboto-Medium.ttf'),
    url('../fonts/Roboto/Roboto-Medium.tff');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Roboto/Roboto-SemiBold.ttf'),
    url('../fonts/Roboto/Roboto-SemiBold.tff');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Roboto/Roboto-Bold.ttf'),
    url('../fonts/Roboto/Roboto-Bold.tff');
  font-display: swap;
}

/* Gunakan Poppins sebagai font utama */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Opsional: sesuaikan heading/navbar */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-weight: 600;
}

.text-value {
  color: #000;
}

[data-bs-theme="dark"] .text-value {
  color: #fff;
}


[data-bs-theme="dark"] {
  color-scheme: dark;
}

[data-bs-theme="dark"] .form-control-search {
  background-color: #1E232C;
  color: #b1b1b4;
}

[data-bs-theme="dark"] body {
  background-color: #1E232C;
  color: #e0e0e0;
}

[data-bs-theme="dark"] main {
  background-color: #1E232C;
}

[data-bs-theme="dark"] header p,
[data-bs-theme="dark"] header .lead {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .navbar {
  background-color: #161b23 !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-brand {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .navbar-light .nav-link {
  color: #b0b0b0 !important;
}

[data-bs-theme="dark"] .navbar-light .nav-link:hover {
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #2d2d2d !important;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .card {
  background-color: #161b23;
  border-color: #444;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .card-title {
  color: #fff;
}

[data-bs-theme="dark"] .card-text {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .radialBarChart1 {
  color: #fff;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #2d2d2d;
  border-color: #444;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #fff;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #444;
  color: #fff;
}

[data-bs-theme="dark"] .dropdown-item.active {
  background-color: #0d6efd;
}

[data-bs-theme="dark"] .btn-primary {
  color: #e0e0e0;
  background-color: #3271b8;
  border-color: #00000000;
}

/* [data-bs-theme="dark"] .btn-danger {
  color: #e0e0e0;
  background-color: rgba(195, 71, 58, 0.5);
  border-color: #00000000;
} */

[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #33579a;
  border-color: #33579a;
}

/* [data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
} */

[data-bs-theme="dark"] .btn-danger:hover {
  background-color: #bb2d3c;
  border-color: #bb2d3c;
}

[data-bs-theme="dark"] .bg-dark {
  background-color: #0f0f0f !important;
}

[data-bs-theme="dark"] .text-white {
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5 {
  color: #fff;
}

[data-bs-theme="dark"] h6 {
  color: #bedbff;
}

[data-bs-theme="dark"] .icon {
  color: #bedbff;
}

[data-bs-theme="dark"] .display-5 {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control {
  background-color: transparent;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .form-check-input:checked {
  background-color: #3271b8;
}

[data-bs-theme="dark"] .form-check-input {
  border-color: #fff;
}

[data-bs-theme="dark"] .form-check-input.role {
  border-color: #000;
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: #1d1d1d;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .ingress-status-icon {
  color: #ffffff;
}

[data-bs-theme="dark"] .sidebar {
  background-color: #2d2d2d;
  border-right-color: #444;
}

[data-bs-theme="dark"] .sidebar.show {
  background: #161b23;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link:hover,
[data-bs-theme="dark"] .sidebar-nav .nav-link.active {
  color: #e0e0e0;
  background-color: rgba(13, 110, 253, 0.2);
}

/* Logo switcher: default tampilkan logo-light, sembunyikan logo-dark (md+) */
@media (min-width: 768px) {
  .logo-light {
    display: inline-block !important;
  }

  .logo-dark {
    display: none !important;
  }

  /* Saat dark theme aktif: tampilkan logo-dark, sembunyikan logo-light */
  [data-bs-theme="dark"] .logo-light {
    display: none !important;
  }

  [data-bs-theme="dark"] .logo-dark {
    display: inline-block !important;
  }
}

/* Jika ingin juga mengganti di layar kecil (optional), hapus media query dan gunakan rules umum */

/* Navbar: posisi sticky, tapi akan ter-offset oleh sidebar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: auto;
  transition: margin-left 0.3s ease;
}

/* Navbar ter-offset saat sidebar open */
.wrapper.sidebar-open .navbar {
  margin-left: 256px;
}

/* Navbar ter-offset saat sidebar collapsed */
.wrapper.sidebar-collapsed .navbar {
  margin-left: 64px;
}

/* Sidebar Layout */
body {
  overflow-x: hidden;
}

.login-body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.login-wrapper {
  width: 380px;
  padding: 35px;
  border-radius: 10px;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.login-wrapper h4 {
  font-weight: 600;
  margin-top: 10px;
}

.form-control {
  background-color: #fff;
  border: 1px solid #E5E7EB;
  color: #000;
}

.border-search {
  border-top: 1px solid #E5E7EB;
  border-left: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 8px;
  border-radius: 9999px;
}

.form-control-search {
  background-color: #fff;
  border: 1px solid #E5E7EB;
  color: #000;
  border-radius: 9999px;
  border-left: 0;
  flex: 1 1 auto;
}

[data-bs-theme="dark"] .border-search {
  border-top: 1px solid #525252;
  border-left: 1px solid #525252;
  border-bottom: 1px solid #525252;
  padding: 8px;
  border-radius: 9999px;
}

[data-bs-theme="dark"] .form-control-search {
  border: 1px solid #525252;
}

.form-control-search:focus-visible {
  border-left: 0 !important;
  outline: 0 !important;
}

.form-control:focus {
  background-color: #fff;
  border-color: #000;
  box-shadow: none;
}

.btn-login {
  width: 100%;
  background-color: #3271b8;
  color: white;
  padding: 10px 0;
  font-weight: 500;
}

.btn-login:hover {
  background-color: #33579a;
  color: #fff;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 0;
}

header,
main,
footer {
  transition: margin-left 0.3s ease;
}

main {
  flex-grow: 1;
}

main,
header,
.container {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  max-width: 100%;
}

footer {
  margin-top: auto;
}

.wrapper.sidebar-open header,
.wrapper.sidebar-open main,
.wrapper.sidebar-open footer {
  margin-left: 256px;
}

.wrapper.sidebar-collapsed header,
.wrapper.sidebar-collapsed main,
.wrapper.sidebar-collapsed footer {
  margin-left: 80px;
}

.sidebar {
  position: fixed;
  top: 0;
  width: 256px;
  height: 100vh;
  background-color: #fff;
  border-right: 1px solid transparent;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 1050;
}

.sidebar.show {
  left: 0;
  background-image: linear-gradient(to bottom, #253b74, #2a417e, #2e4788, #334d93, #38539d);
}

/* Sidebar dalam state collapsed */
.wrapper.sidebar-collapsed .sidebar {
  width: 64px;
  left: 0;
}

/* Sidebar Logo Styling */
.sidebar-logo {
  padding: 28px;
}

.sidebar-logo a {
  color: #333;
  font-weight: 600;
}

.sidebar-logo img {
  transition: opacity 0.3s ease;
}

/* Logo visibility based on theme */
.sidebar-logo .logo-light {
  display: inline-block;
}

.sidebar-logo .logo-dark {
  display: none;
}

[data-bs-theme="dark"] .sidebar-logo .logo-light {
  display: none;
}

[data-bs-theme="dark"] .sidebar-logo .logo-dark {
  display: inline-block;
}

[data-bs-theme="dark"] .sidebar-logo {
  border-bottom-color: #444;
}

[data-bs-theme="dark"] .sidebar-logo a {
  color: #e0e0e0;
}

/* Hide logo text when sidebar collapsed */
.wrapper.sidebar-collapsed .sidebar-logo-text {
  display: none;
}

.wrapper.sidebar-collapsed .mini-small {
  display: none;
}

.wrapper.sidebar-collapsed .mini-small-logo {
  display: none;
}

.wrapper.sidebar-collapsed .sidebar-logo {
  padding: 24px 12px;
  text-align: center;
}

.wrapper.sidebar-collapsed .sidebar-logo a {
  justify-content: center;
  gap: 0 !important;
}

.form-check-input.form-check-lg {
  padding: 10px 20px;
}

.pointer {
  cursor: pointer;
}

.pointer:hover {
  cursor: pointer;
  /* background-color: #f6f3f4; */
}

[data-bs-theme="dark"] .pointer:hover {
  cursor: pointer;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-left: 0 solid transparent;
  transition: all 0.3s ease;
  display: flex;
  gap: 10px;
}

.sidebar-nav .nav-link i {
  min-width: 24px;
  text-align: center;
}

.sidebar .sidebar-nav .nav-link {
  margin-left: 16px;
  margin-right: 16px;
  margin-top: 3px;
  padding-left: 8px;
}

.sidebar .sidebar-nav .nav-link:hover,
.sidebar .sidebar-nav .nav-link.active {
  border-radius: 10px;
  padding-left: 8px;
}

nav .nav-item .nav-link:hover,
nav .nav-item .nav-link.active {
  background-color: #fff3;
  color: #fff;
}

/* Sembunyikan label saat collapsed */
.wrapper.sidebar-collapsed .sidebar-nav .nav-link .nav-label {
  display: none;
}

.wrapper.sidebar-collapsed .sidebar-nav .nav-link {
  padding: 8px;
  justify-content: center;
}

.wrapper.sidebar-collapsed .sidebar-nav {
  padding: 2px 2px;
}

.sidebar-nav .nav-item:last-child {
  position: fixed;
  bottom: 18px;
  width: 256px;
}

.wrapper.sidebar-collapsed .sidebar-nav .nav-item:last-child {
  width: auto;
}

/* Dark theme support */
[data-bs-theme="dark"] .sidebar-nav .nav-item:last-child {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .sidebar {
  background-color: #2d2d2d;
  border-right-color: #444;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .sidebar .sidebar-nav .nav-link:hover,
[data-bs-theme="dark"] .sidebar .sidebar-nav .nav-link.active {
  color: #b1b1b4;
  background-color: #b1b1b41a;
}

[data-bs-theme="dark"] .expandable-table thead tr th {
  background: #161B23;
  color: #fff;
}

/* Navbar Brand - Removed (logo now in sidebar) */

/* Navbar Menu Wrapper - spacing */
.navbar-menu-wrapper {
  gap: 8px !important;
}

.wrapper.sidebar-collapsed .navbar-menu-wrapper {
  gap: 12px !important;
}

.wrapper.sidebar-collapsed .navbar-brand-wrapper {
  padding-right: 8px;
}

/* Animasi rotasi untuk ikon tombol sidebar */
#sidebarToggle i {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.35s ease;
}

#sidebarToggle.rotated i {
  transform: rotate(180deg);
}

.expandable-table thead tr th {
  background: #ebeff3;
  padding: 11px;
  color: #000;
  font-size: 14px;
}

.expandable-table thead tr th:first-child {
  border-radius: 8px 0 0 0px;
}

.expandable-table thead tr th:last-child {
  border-radius: 0 8px 0px 0;
}

.expandable-table tr.odd,
.expandable-table tr.even {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.expandable-table tr td {
  padding: 11px;
  font-size: 14px;
}

.expandable-table tr td.select-checkbox {
  padding-left: 26px;
}

.expandable-table tr td.select-checkbox:after {
  top: 2rem;
}

.expandable-table tr td.select-checkbox:before {
  top: 2rem;
}

.expandable-table tr td .cell-hilighted {
  background-color: #4B49AC;
  border-radius: 10px;
  padding: 18px;
  color: #fff;
  font-size: 11px;
}

.expandable-table tr td .cell-hilighted h5,
.expandable-table tr td .cell-hilighted .h5 {
  font-size: 20px;
  color: #52C4FF;
}

.expandable-table tr td .cell-hilighted p {
  opacity: 0.6;
  margin-bottom: 0;
}

.expandable-table tr td .cell-hilighted h6,
.expandable-table tr td .cell-hilighted .h6 {
  font-size: 14px;
  color: #52C4FF;
}

.expandable-table tr td .expanded-table-normal-cell {
  padding: 10px;
}

.expandable-table tr td .expanded-table-normal-cell p {
  font-size: 11px;
  margin-bottom: 0;
}

.expandable-table tr td .expanded-table-normal-cell h6,
.expandable-table tr td .expanded-table-normal-cell .h6 {
  color: #0B0F32;
  font-size: 14px;
}

.expandable-table tr td .expanded-table-normal-cell .highlighted-alpha {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background: #FE5C83;
  color: #ffffff;
  text-align: center;
  padding-top: 7px;
  font-size: 14px;
  margin-right: 8px;
}

.expandable-table tr td .expanded-table-normal-cell img {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  margin-right: 8px;
}

.expandable-table tr td.details-control:before {
  content: "\e64b";
  font-family: "themify";
}

.expandable-table tr td.details-control {
  cursor: pointer;
}

.expandable-table tr.shown td.details-control:before {
  content: "\e648";
}

.expandable-table .expanded-row {
  background: #fafafa;
}

.stretch-card {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
  -webkit-justify-content: stretch;
  justify-content: stretch;
}

.stretch-card>.card {
  width: 100%;
  min-width: 100%;
}

.drag-area {
  border: 2px dashed #3271b8;
  height: 250px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.drag-area.active {
  border: 2px solid #3271b8;
}

.drag-area .icon {
  font-size: 48px;
  color: #3271b8;
}

.drag-area header {
  font-weight: 500;
  color: #000;
}

.drag-area span {
  font-weight: 500;
  color: #000;
  margin: 10px 0 15px 0;
}

.drag-area button {
  padding: 10px 25px;
  font-weight: 500;
  border: none;
  outline: none;
  background: #3271b8;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.5s;
}

.drag-area button:hover {
  background: #477ce0;
}

@media (max-width: 745px) {
  .drag-area button {
    padding: 8px 20px;
    font-weight: 450;
  }

  .drag-area header {
    font-weight: 450;
    color: #000;
  }

  .drag-area .icon {
    font-size: 24px;
  }
}

/* Prevent flash of unstyled content - hide wrapper until sidebar state is applied */
.wrapper:not(.sidebar-open):not(.sidebar-collapsed) {
  visibility: hidden;
}

.add_backend_servers {
  --bs-btn-padding-y: 2px;
  --bs-btn-padding-x: 6px;
  --bs-btn-font-size: .75rem;
  transform: translateY(-5px);
}

/* ===== Select2 (multiple) — styled to match project theme ===== */

/* Container (default / light) */
.select2-container--default .select2-selection--multiple {
  background: #fff;
  border: 1px solid #ced4da;
  min-height: calc(1.5em + .75rem + 2px);
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Rendered choices: wrap and gap */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Input field inside the select2 control */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  min-width: 120px;
  margin-top: 4px;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

/* Choice "chips" */
.select2-selection__choice {
  background-color: #3271b8;
  color: #fff !important;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-top: 4px;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(51, 115, 186, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Remove icon within chip */
.select2-selection__choice__remove {
  color: rgba(255, 255, 255, 0.95);
  margin-right: 0.25rem;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Hover / focus state */
.select2-container--default .select2-selection--multiple:hover,
.select2-container--default .select2-selection--multiple:focus-within {
  border-color: #2370a9;
  box-shadow: 0 0 0 0.12rem rgba(51, 115, 186, 0.08);
}

/* Placeholder for Select2 multiple */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d;
  padding-left: 0.25rem;
}

/* Fallback: style native multiple select so it degrades nicely */
select.form-select[multiple] {
  height: auto;
  min-height: calc(1.5em + .75rem + 2px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

/* Modal dropdown z-index fix (Select2 inside Bootstrap modal) */
.modal .select2-container--open .select2-dropdown {
  z-index: 2000;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
  background-color: #3271b8 !important;
  color: #fff !important;
}

[data-bs-theme="dark"] li .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
  background-color: #0d6efd !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
  width: 100%;
  min-height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #161b23;
  background-color: #161b23 !important;
  border: 1px solid #495057 !important;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===== Dark theme adjustments (match your [data-bs-theme="dark"] rules) ===== */
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
  background: #161b23;
  border: 1px solid #444;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .select2-selection__choice {
  background: rgba(13, 110, 253, 0.2) !important;
  box-shadow: none;
}

[data-bs-theme="dark"] .select2-selection__choice__remove {
  color: #000 !important;
}

/* Make dropdown text readable in dark theme */
[data-bs-theme="dark"] .select2-container--default .select2-dropdown,
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  background: #2d2d2d;
  color: #e0e0e0;
}

/* === MOBILE SIDEBAR OVERLAY === */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
  }

  .wrapper.sidebar-open .sidebar {
    left: 0;
  }

  .wrapper.sidebar-collapsed .sidebar {
    width: 260px !important;
    left: -260px !important;
  }

  .wrapper.sidebar-collapsed .sidebar * {
    opacity: 1;
    pointer-events: auto;
  }

  /* Backdrop */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .wrapper.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

/* Responsive small screens */
@media (max-width: 767px) {
  .select2-container--default .select2-selection--multiple {
    padding: 0.5rem;
  }

  .select2-selection__choice {
    font-size: 0.82rem;
    padding: 0.2rem 0.5rem;
  }
}

.copy-container {
  margin-left: 5px;
}

.copy-btn {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #3271b8;
  color: #fff;
}

.copy-btn.success {
  background: #198653;
  color: #fff;
}

.tooltip {
  position: absolute;
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: 5px;
}

.rotate {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* File Upload Custom Styles */
.file-upload-default {
  visibility: hidden;
  position: absolute;
}

.file-upload-info {
  background: #ffffff;
}

.file-upload-browse {
  margin-right: 10px;
}

.submit_restore_btn {
  display: none;
}

[data-bs-theme="dark"] .file-upload-info {
  background-color: #161b23;
  color: #e0e0e0;
  border: 1px solid #444;
}

@media (max-width: 768px) {

  /* Jangan pernah push konten di mobile */
  .wrapper.sidebar-open header,
  .wrapper.sidebar-open main,
  .wrapper.sidebar-open footer,
  .wrapper.sidebar-collapsed header,
  .wrapper.sidebar-collapsed main,
  .wrapper.sidebar-collapsed footer {
    margin-left: 0 !important;
  }

  .wrapper.sidebar-open .navbar,
  .wrapper.sidebar-collapsed .navbar {
    margin-left: 0 !important;
  }
}


.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #f9fafb;
}

[data-bs-theme="dark"] .login-page {
  background-color: #1e232c;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .login-card {
  background-color: #161b23;
  border-color: #2a2f3a;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
}

[data-bs-theme="dark"] .login-title {
  color: #ffffff;
}

.login-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

[data-bs-theme="dark"] .login-subtitle {
  color: #9ca3af;
}

.login-version {
  font-size: 0.7rem;
  color: #9ca3af;
}

.login-input {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
}

.login-input:focus {
  border-color: #3271b8;
  box-shadow: 0 0 0 0.15rem rgba(50, 113, 184, 0.25);
}

[data-bs-theme="dark"] .login-input {
  background-color: #1e232c;
  border-color: #2a2f3a;
  color: #ffffff;
}

.login-btn {
  background-color: #3271b8;
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.6rem;
  font-weight: 500;
}

.login-btn:hover {
  background-color: #33579a;
  color: #fff;
}

.login-logo-light {
  height: 40px;
}

.page-input {
  height: 34px;              
  padding: 0.375rem 0.5rem;  
  font-size: 0.875rem;       
  line-height: 1.25;
  text-align: center;
}

[data-bs-theme="dark"] .page-input {
  border-color: #525252;
}

[data-bs-theme="dark"] .page-link.active,
[data-bs-theme="dark"] .active > .page-link {
  z-index: 3;
  color: #fff;              
  background-color: #525252; 
  border-color: #525252;
}

[data-bs-theme="dark"] .btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1e232c;
  --bs-btn-border-color: #1e232c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5c636a;
  --bs-btn-hover-border-color: #565e64;
  --bs-btn-focus-shadow-rgb: 130, 138, 145;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #565e64;
  --bs-btn-active-border-color: #51585e;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #f3f4f6;
  --bs-btn-disabled-border-color: #f3f4f6;
}

.drop-zone-modern {
  border: 2px dashed rgba(50, 113, 184, 0.5);
  border-radius: 12px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

[data-bs-theme="light"] .drop-zone-modern:hover {
  background-color: #f1f3f5;
}

.drop-zone-modern.dragover {
  border-color: #3271b8;
}

/* =========================
   SweetAlert Custom Theme
   ========================= */

.swal2-popup {
  padding: 0 !important; /* container luar tetap 0 */
  border-radius: 0.5rem !important;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
              0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
}

.swal2-title,
.swal2-html-container {
  padding: 1rem 1.5rem !important; /* mirip p-3 sm:p-4 */
  margin: 0 !important;
}

.swal2-toast .swal2-title,
.swal2-toast .swal2-html-container {
  padding: 1rem 1.5rem !important; 
}

.swal2-title {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

.swal2-html-container {
  font-size: 0.75rem !important;
}
