.authentication-background {
    background:unset !important;
}

.container-x {
    display: flex;
    flex-wrap: wrap; /* Membungkus elemen jika terlalu besar */
    gap: 4px;
}

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

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

.error{
    color: red !important;
}

.app-sidebar .side-menu__icon {
    font-size: 1rem !important;
}

.cursor-pointer{
    cursor: pointer !important;
}

@media screen and (max-width: 768px) {
    .mobile-mode{
        display:block !important;
    }

    .create-btn{
		width: 100% !important;
		margin-top: 3px !important;
	}

    .item-x {
		flex: 1 1 100%; /* Setiap elemen mengambil seluruh lebar */
	}

    .pt-5-mobile{
        padding-top: 3rem !important;
    }
}

@media screen and (min-width: 769px) {
    .mobile-mode{
        display:none !important;
    }

    .w-100{
        width: 100% !important;
    }

    .create-btn{
        float: right;
        right: 0px;
        position: absolute;
    }

    .excel-upload-btn2{
        float: right;
        right: 215px;
        position: absolute;
    }

    .excel-upload-btn{
        float: right;
        right: 35px;
        position: absolute;
    }
}

.header-element.header-search .header-search-bar.form-control {
    min-width: 10rem !important;
    width: 15rem !important;
}

.card.custom-card .card-header {
    padding: 0.5rem 1rem !important;
}

.column-fix {
	width: 1%;
	white-space: nowrap;
}

.table th, .table td {
    padding: 0.2rem 1rem !important;
    height: 2.2rem !important;
}

.table thead tr th {
    text-align: center !important;
}

.mw-60{
    min-height: 53px !important;
}

.capitalize{
    text-transform: capitalize;
}

.btn {
    font-size: 0.713rem !important;
}

.selectedrow{
	background-color: #dae7f99c  !important;
}

tr{
    cursor:pointer;
    border-color: #b5c1ce !important;
}

.table > :not(caption) > * > * {
    background-color: unset !important;
}

/* .table {
    border-color: #afb9c4 !important;
} */
.table-info{
    background-color: beige !important;
}

.table thead tr th {
    font-size: 0.813rem !important;
}

.fs-14 {
    font-size: 0.813rem !important;
}

.form-check-md label {
    font-size: 0.813rem !important;
}

.display-none{
    display:none
}

.app-sidebar .main-sidebar-header {
    background: white !important;
}

.picker {
    border-radius: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    -webkit-transition: all linear .2s;
    -moz-transition: all linear .2s;
    -ms-transition: all linear .2s;
    -o-transition: all linear .2s;
    transition: all linear .2s;
    border: thin solid #eee;
}
.picker:hover {
    transform: scale(1.1);
}

.mw-100{
    max-width: 100px !important;
}

.select2-selection__rendered{
    font-size: 0.8rem !important;
}

.box-color{
  width: 25px !important;
  height: 25px !important;
}

.mw-200{
    width: 200px !important;
}

.w-150{
    max-width: 150px !important;
}

.maxw-150{
    max-width: 150px !important;
}

.maxw-100{
    max-width: 100px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--default-text-color) !important;
    /* line-height: 2.33rem !important; */
    height: 35px !important;
    line-height: 2.05rem !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 0.25rem !important;
  }

  .s{
    max-width: 100px;
    border-radius: 7px !important;
  }

.text-darkred{
    color: #554a4a !important
}

.btn:hover {
  color: var(--bs-btn-hover-color) !important;
  background-color: var(--bs-btn-hover-bg) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
}

.mw-100{
  max-width: 100px !important;
}

.text-red{
    color: red !important;
}

.text-yellow{
    color: yellow !important;
}

.text-orange{
    color: orange !important;
}

.text-green{
    color: green !important;
}

.text-blue{
    color: blue !important;
}

.text-black{
    color: black !important;
}

.text-purple{
    color: purple !important;
}

/* Untuk browser berbasis WebKit (Chrome, Edge, Safari) */
.table-responsive::-webkit-scrollbar {
    height: 12px; /* Ubah sesuai kebutuhan kamu */
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Untuk Firefox */
.table-responsive {
    scrollbar-width: auto; /* atau bisa 'thin' */
    scrollbar-color: #888;
}

.ui-datepicker td span, .ui-datepicker td a {
  display: block;
  padding: .2em;
  text-align: center !important;
  text-decoration: none;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
  border: 1px solid #dddddd;
  background: unset !important;
  font-weight: normal;
  color: black !important;
  border-radius: 5px !important;
}

.ui-datepicker-header{
    margin-top: 5px !important;
    margin-bottom: 5px;
    background: unset !important;
    border-radius: 5px;
    margin-top: 2px;
}

/* ---------- THEME TOKENS ---------- */
    :root {
      --bg-start: #f4f6fb;
      --bg-end: #e6ebf5;
      --card-bg: rgba(255, 255, 255, 0.72);
      --card-border: rgba(15, 23, 42, 0.06);
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #64748b;
      --input-bg: rgba(255, 255, 255, 0.9);
      --input-border: #dbe2ea;
      --input-hover: #c7d2dd;
      --ring: #6366f1;
      --ring-soft: rgba(99, 102, 241, 0.18);
      --btn-bg: #6366f1;
      --btn-hover: #4f46e5;
      --btn-text: #ffffff;
      --btn-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.55);
      --card-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
      --toggle-bg: #eef2f7;
      --toggle-icon: #0f172a;
      --divider: #e2e8f0;
      --social-bg: rgba(255, 255, 255, 0.9);
      --social-border: #e2e8f0;
      --social-hover: #f8fafc;
      --icon-google: #EA4335;
      --icon-github: #0f172a;
    }

    [data-theme="dark"] {
      --bg-start: #0b1120;
      --bg-end: #1e293b;
      --card-bg: rgba(20, 28, 46, 0.78);
      --card-border: rgba(148, 163, 184, 0.12);
      --text-primary: #f1f5f9;
      --text-secondary: #cbd5e1;
      --text-muted: #94a3b8;
      --input-bg: rgba(15, 23, 42, 0.75);
      --input-border: #334155;
      --input-hover: #475569;
      --ring: #818cf8;
      --ring-soft: rgba(129, 140, 248, 0.22);
      --btn-bg: #818cf8;
      --btn-hover: #a5b4fc;
      --btn-text: #0b1120;
      --btn-shadow: 0 10px 24px -8px rgba(129, 140, 248, 0.5);
      --card-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 12px 28px -12px rgba(0, 0, 0, 0.45);
      --toggle-bg: #334155;
      --toggle-icon: #f1f5f9;
      --divider: #334155;
      --social-bg: rgba(15, 23, 42, 0.55);
      --social-border: #334155;
      --social-hover: rgba(30, 41, 59, 0.85);
      --icon-github: #f1f5f9;
    }

    /* ---------- BASE ---------- */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html { -webkit-text-size-adjust: 100%; }

    body {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: linear-gradient(150deg, var(--bg-start), var(--bg-end));
      color: var(--text-primary);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transition: background 0.35s ease, color 0.25s ease;
      overflow: hidden;
      position: relative;
    }

    /* ---------- THREE.JS CANVAS LAYER ---------- */
    #bg-canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      display: block;
    }

    /* subtle radial vignette above canvas, below card */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: radial-gradient(
        ellipse at 50% 45%,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.04) 100%
      );
      transition: background 0.4s ease;
    }

    [data-theme="dark"] body::after,
    [data-theme="dark"]::after {
      background: radial-gradient(
        ellipse at 50% 45%,
        transparent 0%,
        transparent 35%,
        rgba(0, 0, 0, 0.35) 100%
      );
    }

    /* ---------- CARD ---------- */
    .login-card {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 440px;
      padding: 2.5rem 2.25rem;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 2rem;
      box-shadow: var(--card-shadow);
      backdrop-filter: blur(22px) saturate(150%);
      -webkit-backdrop-filter: blur(22px) saturate(150%);
      overflow: hidden;
      transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .login-card::before {
      content: '';
      position: absolute;
      inset: -40% auto auto -20%;
      width: 70%;
      height: 70%;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
      pointer-events: none;
    }

    .login-content { position: relative; z-index: 1; }

    /* ---------- HEADER ---------- */
    .login-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.75rem;
    }

    .login-header h1 {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.2;
      color: var(--text-primary);
      transition: color 0.25s ease;
    }

    /* ---------- THEME TOGGLE ---------- */
    .theme-toggle {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border: 1px solid var(--card-border);
      border-radius: 50%;
      background: var(--toggle-bg);
      color: var(--toggle-icon);
      font-size: 1.05rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
    }

    .theme-toggle:hover { transform: scale(1.06); }
    .theme-toggle:active { transform: scale(0.96); }
    .theme-toggle:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 3px;
    }

    /* ---------- WELCOME ---------- */
    .welcome-text {
      margin-bottom: 1.9rem;
      font-size: 0.925rem;
      line-height: 1.55;
      color: var(--text-secondary);
      transition: color 0.25s ease;
    }

    /* ---------- FORM FIELDS ---------- */
    .input-group { margin-bottom: 1.35rem; display: block !important }

    .input-group label {
      display: block;
      margin-bottom: 0.45rem;
      font-size: 0.825rem;
      font-weight: 500;
      letter-spacing: 0.01em;
      color: var(--text-secondary);
      transition: color 0.25s ease;
    }

    .input-wrapper { position: relative; }

    .input-wrapper > i.field-icon {
      position: absolute;
      top: 50%;
      left: 1.05rem;
      transform: translateY(-50%);
      font-size: 0.95rem;
      color: var(--text-muted);
      pointer-events: none;
      transition: color 0.2s ease;
      line-height: 1;
    }

    .input-wrapper input {
      width: 100%;
      height: 52px;
      padding: 0 3.25rem 0 2.9rem;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 400;
      color: var(--text-primary);
      background: var(--input-bg);
      border: 1.5px solid var(--input-border);
      border-radius: 0.95rem;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
    }

    .input-wrapper input::placeholder {
      color: var(--text-muted);
      opacity: 0.75;
    }

    .input-wrapper input:hover { border-color: var(--input-hover); }

    .input-wrapper input:focus {
      border-color: var(--ring);
      box-shadow: 0 0 0 4px var(--ring-soft);
    }

    .input-wrapper:focus-within > i.field-icon {
      color: var(--ring);
    }

    /* password eye button */
    .toggle-password {
      position: absolute;
      top: 50%;
      right: 0.55rem;
      transform: translateY(-50%);
      width: 38px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      border-radius: 0.65rem;
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1;
      cursor: pointer;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .toggle-password:hover {
      color: var(--text-primary);
      background: rgba(100, 116, 139, 0.12);
    }

    .toggle-password:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }

    .toggle-password i {
      display: block;
      line-height: 1;
      pointer-events: none;
    }

    /* ---------- OPTIONS ROW ---------- */
    .form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin: 0.35rem 0 1.6rem;
      font-size: 0.875rem;
    }

    .remember-me {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      color: var(--text-secondary);
      cursor: pointer;
      user-select: none;
      transition: color 0.25s ease;
    }

    .remember-me input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--btn-bg);
      cursor: pointer;
      margin: 0;
    }

    .forgot-link {
      color: var(--btn-bg);
      font-weight: 500;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .forgot-link:hover {
      color: var(--btn-hover);
      text-decoration: underline;
    }

    /* ---------- PRIMARY BUTTON ---------- */
    .login-btn {
      width: 100%;
      height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      font-family: inherit;
      font-size: 0.975rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--btn-text);
      background: var(--btn-bg);
      border: none;
      border-radius: 0.95rem;
      cursor: pointer;
      box-shadow: var(--btn-shadow);
      transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    }

    .login-btn:hover {
      background: var(--btn-hover);
      transform: translateY(-1px);
      box-shadow: 0 14px 26px -8px rgba(99, 102, 241, 0.6);
    }

    .login-btn:active { transform: translateY(0); }

    .login-btn:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 3px;
    }

    .login-btn i { font-size: 0.9rem; }

    /* ---------- DIVIDER ---------- */
    .divider {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      margin: 1.7rem 0 1.35rem;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--divider);
      transition: background 0.25s ease;
    }

    /* ---------- SOCIAL BUTTONS ---------- */
    .social-login {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }

    .social-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      height: 48px;
      padding: 0 1rem;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-primary);
      background: var(--social-bg);
      border: 1.5px solid var(--social-border);
      border-radius: 0.95rem;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    }

    .social-btn:hover {
      background: var(--social-hover);
      border-color: var(--input-hover);
      transform: translateY(-1px);
    }

    .social-btn:active { transform: translateY(0); }

    .social-btn:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    .social-btn i {
      font-size: 1.05rem;
      line-height: 1;
      display: inline-block;
    }

    .social-btn .fa-google { color: var(--icon-google); }
    .social-btn .fa-github { color: var(--icon-github); }

    /* ---------- SIGNUP PROMPT ---------- */
    .signup-prompt {
      margin-top: 1.6rem;
      text-align: center;
      font-size: 0.875rem;
      color: var(--text-secondary);
      transition: color 0.25s ease;
    }

    .signup-prompt a {
      color: var(--btn-bg);
      font-weight: 600;
      text-decoration: none;
      margin-left: 0.2rem;
      transition: color 0.2s ease;
    }

    .signup-prompt a:hover {
      color: var(--btn-hover);
      text-decoration: underline;
    }

    /* ---------- RESPONSIVE ---------- */
    @media (max-width: 460px) {
      .login-card {
        padding: 2rem 1.5rem;
        border-radius: 1.75rem;
      }
      .login-header h1 { font-size: 1.5rem; }
      .theme-toggle { width: 40px; height: 40px; }
      .social-login { grid-template-columns: 1fr; }
    }

    /* ---------- REDUCED MOTION ---------- */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
      }
      #bg-canvas { display: none; }
    }