@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

/* ========================================== 
TOOLS CSS 
=============================================*/
:root {
  --primary-color: rgb(33, 24, 51);
  --secondary-color: rgb(55, 77, 110);
  --tertary-color: rgb(255, 165, 0);
}
body {
  font-family: "Inter", sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #222222;
  font-size: 0.85rem;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 0px !important;
}

/* Firefox */
* {
  scrollbar-width: none !important;
}

/* IE / Edge lama */
* {
  -ms-overflow-style: none !important;
}

a {
  text-decoration: none !important;
}

.callout-top-success {
  border-top: 3px solid green;
}
.form-label-bold {
  font-weight: bold;
}

/* ========================================== 
LOGIN CSS 
=============================================*/
.login-left-section {
  height: 30vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.login-right-section {
  min-height: 70vh;
  padding: 50px 32px;
}
.login-logo-image {
  height: 50px;
  margin-bottom: 2rem;
}
.login-title {
  font-weight: bold;
}
.login-description-btn {
  font-weight: bold;
  transition: all ease 0.3s;
}
.login-description-btn:hover {
  color: orange;
}
.login-form {
  margin-top: 2rem;
}
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 2.5rem;
}
.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(50%);
  cursor: pointer;
  z-index: 2;
  color: #6c757d;
}
.login-form input::placeholder {
  font-size: 0.85rem;
}
.form-control-login {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.login-form-lupa-sandi {
  margin-top: 16px;
}
.lupa-sandi-btn {
  font-weight: bold;
  transition: all ease 0.3s;
}
.lupa-sandi-btn:hover {
  color: orange;
}
.login-footer {
  margin-top: 2rem;
  font-size: smaller;
}

@media (min-width: 768px) {
  .login-left-section {
    height: 30vh;
  }
  .login-right-section {
    height: 70vh;
  }
}

@media (min-width: 992px) {
  .login-left-section {
    height: 100vh;
  }
  .login-right-section {
    height: 100vh;
  }
}

/* ========================================== 
RESET SANDI CSS 
=============================================*/
.reset-section {
  padding: 50px 0;
  text-align: center;
}
.reset-section-image {
  height: 50px;
}
.reset-title {
  font-size: 1.5rem;
  margin-top: 32px;
}
.reset-form {
  width: 100%;
  justify-self: center;
}
.reset-form input {
  text-align: center;
}
.reset-form input::placeholder {
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .reset-form {
    width: 40%;
  }
}

/* ========================================== 
MAIN CSS 
=============================================*/
.page-body {
  margin-top: 0 rem !important;
}
.profil-dropdown-menu {
  padding: 0;
}
.profil-dropdown-menu-content {
  background-image: url("/core/assets/images/pattern.png");
}
.profil-dropdown-menu-avatar {
  height: 80px;
  width: 81px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin-bottom: 10px;
}
.profil-dropdown-menu-name .nama {
  font-weight: bold;
  color: whitesmoke;
}
.profil-dropdown-menu-name .role-user {
  color: whitesmoke;
}
.profil-dropdown-menu-button {
  padding: 10px 10px 5px 10px;
}
.btn-profil {
  margin-bottom: 5px;
}
.dropdown-menu {
  padding: 0;
}
.dropdown-item {
  transition: all ease 0.3s;
}
.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #ddd;
}
.dropdown-item:hover {
  background-color: rgb(231, 231, 231);
}
.page-pretitle {
  margin-bottom: 10px;
}
.modal-header {
  background-color: #213448 !important;
  color: whitesmoke !important;
}
.modal-header .btn-close {
  filter: invert(1);
}
.modal-header .btn-close:focus {
  outline: none;
  box-shadow: none;
}
thead tr th {
  background-color: #213448 !important;
  color: white !important;
  font-size: 0.75rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.custom-option {
  padding-top: 10px;
  padding-bottom: 10px;
}
.card-border-top-green {
  border-top: 3px solid #00a65a;
  border-radius: 0.25rem;
}

/* ========================================== 
INPUT FILE CSS 
=============================================*/
.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  width: 450px;
  width: 100%;
  padding: 25px;
  border: 2px dashed rgba(118, 118, 118, 0.4);
  border-radius: 3px;
  transition: 0.2s;
}

.choose-file-button {
  flex-shrink: 0;
  background-color: rgba(141, 141, 141, 0.5);
  border: 1px solid rgba(159, 159, 159, 0.1);
  border-radius: 3px;
  padding: 8px 15px;
  margin-right: 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.file-drop-area:hover > .choose-file-button {
  background-color: rgba(112, 111, 109, 0.5) !important;
}

.file-message {
  font-size: small;
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.navigator-panel {
  margin-bottom: 1rem;
}

/* ========================================== 
CARD PROFIL CSS 
=============================================*/
.card-header-profil {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  border-radius: 5px 5px 0 0;
  margin-bottom: 80px;
}
.profil-image {
  position: absolute;
  width: 150px;
  height: 150px;
  bottom: -60px;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 5px solid white;
  padding: 5px;
  background-size: cover;
  background-position: center;
}
.navigator-panel,
.profil-content {
  text-align: center;
}
.profil-name {
  font-size: 2rem;
}
.profil-content {
  margin-top: 50px;
}
@media (min-width: 768px) {
  .card-header-profil {
    margin-bottom: 20px;
  }
  .navigator-panel {
    text-align: end;
  }
  .profil-content {
    text-align: start;
    margin-top: 20px;
  }
  .profil-image {
    width: 150px;
    height: 150px;
    left: 15px;
    transform: translateX(0%);
  }
}

/* ========================================== 
KATA SANDI CSS 
=============================================*/
#strengthBar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}
#strengthBar div {
  height: 100%;
  width: 0;
  transition: width 0.3s;
}
.weak {
  background-color: red !important;
  width: 33% !important;
}
.medium {
  background-color: orange !important;
  width: 66% !important;
}
.strong {
  background-color: green !important;
  width: 100% !important;
}
#togglePassword1 {
  margin-top: -22px;
  right: 20px;
}
#togglePassword2 {
  margin-top: -12px;
  right: 20px;
}
.text-bold {
  font-weight: bold;
}
.menu-row {
  background-color: #dfdfdf;
}
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}
.hide-on-desktop {
  display: none;
}
@media (max-width: 768px) {
  .hide-on-desktop {
    display: block;
  }
}
.submenu-row {
  margin-left: 0px;
}
@media (min-width: 768px) {
  .submenu-row {
    margin-left: 28px;
  }
}
.child-row {
  margin-left: 28px;
}
@media (min-width: 768px) {
  .child-row {
    margin-left: 56px;
  }
}
.navpagination {
  margin-top: 20px;
}
.pagesselect {
  padding: 5px 10px;
}
.role-list {
  display: block;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .role-list {
    margin-left: 0.5rem;
    display: inline;
  }
}
@media (max-width: 768px) {
  .btn-icon {
    margin-top: 10px;
  }
}

.user-image {
  border: #6c757d 2px solid;
}
.btn-list {
  margin-bottom: 5px;
}
.text-justify {
  text-align: justify;
}
.form-check-keywords {
  padding-top: 20px !important;
}

.page-wrapper {
  min-height: 500px;
}
.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6 !important;
}
.a-link {
  text-decoration: none !important;
  transition: all ease 0.3s;
}
.a-link:hover {
  font-weight: bold;
}

/* ========================================== 
DARK MODE CSS 
=============================================*/
.theme-dark table td,
.theme-dark table th {
  color: #fff !important;
}
[data-bs-theme="dark"] table td,
[data-bs-theme="dark"] table th {
  color: var(--tblr-body-color) !important;
}

/* =============================================
SWALL
=============================================*/

body.swal2-shown {
  overflow: auto !important;
  padding-right: 0 !important;
}
body.swal2-height-auto {
  height: 100% !important;
}

/* =============================================
CALLOUT
=============================================*/

.box-top-success {
  border-top-width: 3px;
  border-top-color: #28a745;
}
.box-top-success .card-header {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav-button {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: end;
}
.nav-part-button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nav-part-button-item {
  padding: 0.5rem 1rem;
  background-color: #edf5fa;
  border-left: 2px solid #c4d5df;
  transition: all ease;
}
.nav-part-button-item:hover {
  border-left: 2px solid #179ff4;
  font-weight: bold;
}
.active-button {
  border-left: 2px solid #179ff4;
  font-weight: bold;
}
.disabled-link {
  pointer-events: none;
  color: gray;
  cursor: default;
  text-decoration: none;
}
.image-user {
  width: 100%;
  margin-bottom: 1rem;
  border: #c5c6c6 2px solid;
}
/* Paksa editor menggunakan Font Tabler */
.note-editor .note-editable {
  font-family: var(
    --tblr-font-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    San Francisco,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    sans-serif
  ) !important;
  line-height: 1.6; /* Standar keterbacaan Tabler */
  color: var(--tblr-body-color, #1d273b);
}

/* (Opsional) Sesuaikan tampilan Toolbar agar menyatu dengan card Tabler */
.note-editor.note-frame {
  border-color: var(--tblr-border-color, #e6e7e9);
  box-shadow: none;
}
.note-toolbar {
  background: var(--tblr-bg-surface, #fff);
  border-bottom-color: var(--tblr-border-color, #e6e7e9);
}
.informasi-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
/* Mode Terang (Light Mode) */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.015) !important;
  background-color: var(--bs-table-accent-bg) !important;
  /* Bootstrap sering menggunakan box-shadow inset untuk menimpa warna, jadi kita set juga */
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
}

/* Mode Gelap (Dark Mode) */
body[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.015) !important;
  background-color: var(--bs-table-accent-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
}
