
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #000;
}
.mainner {
  padding: 20px;
}
.header {
  display: flex;
  background: #fff;
  padding: 15px;
  border-radius: 10px 10px 0 0;

  .header-main {
    display: flex;
    justify-content: center;

    .header-left {
      display: flex;
      gap: 10px;
      align-items: center;

      .logo {
        img {
          width: 100%;
          max-width: 120px;
        }
      }
      .trade {
        h2 {
          text-transform: uppercase;
          font-family: "Roboto", sans-serif;
          font-weight: bold;
        }
      }
    }
    
  }

  .header-menu {
    margin: 20px 0 0;
    border-bottom: 5px solid #b92200;

    .container-fluid {
      margin: 0;
      padding: 0;
    }
    .navbar-collapse {
      justify-content: center;

      ul {
        gap: 10px;
        justify-content: center;
        display: flex;
        width: 100%;
    
        li {
          a {
            text-decoration: none;
            font-size: 14px;
            font-weight: bold;
            text-transform: uppercase;
            color: #1c00b9;
          }
        }
      }
    }
  }
}
.main-content {
    background: #fff;
    padding: 15px;
}
.content-login {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #000000;
  padding: 15px;
  border-radius: 10px;
  background: url(../img/bgg.jpg);
  background-size: cover;
  background-repeat: repeat;

  .box-login {
    display: flex;
    flex-direction: column;
    background: #3f434f;
    padding: 15px;
    border-radius: 10px;
    align-items: center;
    gap: 10px;
    color: #fff; 

    h3 {
      text-transform: uppercase;
      font-size: 14px;
    }
    .login-area {
      display: flex;
    }

    
    .login-area {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        padding: 25px;
        box-sizing: border-box;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .login-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #333333;
    }

    .form-group input {
        width: 100%;
        padding: 12px 14px;
        box-sizing: border-box;
        border: 1px solid #d1d5db;
        border-radius: 7px;
        outline: none;
        font-size: 14px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-group input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .form-group input::placeholder {
        color: #9ca3af;
    }

    .login-form .btn-action {
        width: 100%;
        padding: 12px;
        margin-top: 3px;
        border: none;
        border-radius: 7px;
        background-color: #2563eb;
        color: #ffffff;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .login-form .btn-action:hover {
        background-color: #1d4ed8;
    }

    @media (max-width: 480px) {
        .login-area {
            max-width: 100%;
            padding: 20px;
        }
    }

  }
}
.footer {
  background: #fff;
  padding: 15px;
  border-radius: 0 0 10px 10px;
}
.copy {
    display: flex;
    justify-content: center;
}
.main-content {
  background: #fff;
  padding: 15px;
}
.fitur {
    display: flex;
    align-items: center;
    justify-content: center;

  ul {
    display: flex;
    margin: 0px;
    padding: 0;
    gap: 15px;

    li {
      display: flex;
      margin: 0px;
      padding: 0;
      flex-direction: column;
      align-items: center;
      gap: 10px;

      h5 {
        font-size: 13px;
      }
    }
  }
}
.future-icon {
    width: 150px;
    height: 150px;
    background: #55575c;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    box-sizing: border-box;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
    }
}
.table-responsive {
  table {
    thead {
      tr {
        td {
          background: #43454d;
          color: #fbe039;
          text-transform: uppercase;
          font-size: 12px;
          font-weight: bold;
          letter-spacing: 1px;
        }
      }
    }
    
  }
}


/* Container form */
.form-pengguna {
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Judul */
.form-pengguna h2 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 26px;
    font-weight: 700;
}

.form-subtitle {
    margin: 0 0 25px;
    color: #6b7280;
    font-size: 14px;
}

/* Input group */
.form-pengguna .input-group {
    display: flex;
    width: 100%;
}

.form-pengguna .input-group-text {
    min-width: 125px;
    justify-content: flex-start;
    padding: 11px 14px;
    background: #f8fafc;
    border-color: #dbe1e8;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.form-pengguna .form-control,
.form-pengguna .form-select {
    min-width: 0;
    padding: 11px 14px;
    border-color: #dbe1e8;
    color: #374151;
    font-size: 14px;
    box-shadow: none;
}

.form-pengguna .form-control:focus,
.form-pengguna .form-select:focus {
    position: relative;
    z-index: 2;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-pengguna textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-pengguna input::placeholder,
.form-pengguna textarea::placeholder {
    color: #9ca3af;
}

/* Tombol bawah */
.tombol-bawah {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.btn-add,
.btn-back {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.btn-add {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.btn-add:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-back {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.btn-back:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Tampilan HP */
@media (max-width: 576px) {
    .form-pengguna {
        margin: 15px auto;
        padding: 18px;
        border-radius: 10px;
    }

    .form-pengguna h2 {
        font-size: 22px;
    }

    .form-pengguna .input-group-text {
        min-width: 105px;
        padding: 10px;
        font-size: 12px;
    }

    .form-pengguna .form-control,
    .form-pengguna .form-select {
        padding: 10px;
        font-size: 13px;
    }

    .tombol-bawah {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add,
    .btn-back {
        width: 100%;
    }
}

/* Membuat Jabatan sejajar dengan input lainnya */
.form-pengguna .jabatan-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}

.form-pengguna .jabatan-group > .input-group-text {
    flex: 0 0 125px;
    width: 125px;
    min-width: 125px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Select2 mengikuti lebar sisa container */
.form-pengguna .jabatan-group .select2-container {
    flex: 1 1 0;
    width: 1% !important;
    min-width: 0;
    box-sizing: border-box;
}

/* Tampilan kotak Select2 */
.form-pengguna .jabatan-group
.select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #dbe1e8;
    border-radius: 0 6px 6px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* Teks pilihan */
.form-pengguna .jabatan-group
.select2-container--default .select2-selection--single
.select2-selection__rendered {
    padding-left: 14px;
    padding-right: 30px;
    line-height: normal;
    color: #374151;
}

/* Ikon panah */
.form-pengguna .jabatan-group
.select2-container--default .select2-selection--single
.select2-selection__arrow {
    height: 42px;
}

/* Efek ketika dropdown aktif */
.form-pengguna .jabatan-group
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Responsif di HP */
@media (max-width: 576px) {
    .form-pengguna .jabatan-group > .input-group-text {
        flex-basis: 105px;
        width: 105px;
        min-width: 105px;
    }
}

/* Baris Status */
.form-pengguna .status-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

/* Label Status mengikuti lebar label lainnya */
.form-pengguna .status-group > .input-group-text {
    flex: 0 0 125px;
    width: 125px;
    min-width: 125px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Area switch memenuhi sisa lebar */
.form-pengguna .status-control {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #dbe1e8;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    box-sizing: border-box;
}

/* Switch dan tulisan Aktif sejajar */
.form-pengguna .status-control .form-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    padding: 0;
}

.form-pengguna .status-control .form-check-input {
    float: none;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.form-pengguna .status-control .form-check-label {
    margin: 0;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}

/* Tampilan HP */
@media (max-width: 576px) {
    .form-pengguna .status-group > .input-group-text {
        flex-basis: 105px;
        width: 105px;
        min-width: 105px;
    }
}
/* start user */

.filter-pengguna {
    margin: 22px 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.filter-pengguna h5 {
    margin-bottom: 18px;
    color: #1f2937;
    font-weight: 700;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.filter-item {
    min-width: 0;
}

.filter-item label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.filter-item .form-control,
.filter-item .form-select {
    min-height: 42px;
    font-size: 14px;
    border-color: #d1d5db;
    border-radius: 7px;
}

.filter-item .form-control:focus,
.filter-item .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.btn-filter,
.btn-reset {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-filter {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.btn-filter:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-reset {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.btn-reset:hover {
    background: #f3f4f6;
    color: #111827;
}

.table-pengguna {
    vertical-align: middle;
    white-space: nowrap;
}

.table-pengguna thead th {
    padding: 13px 12px;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.table-pengguna tbody td {
    padding: 12px;
    font-size: 13px;
}

.jabatan-badge,
.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.jabatan-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-aktif {
    background: #dcfce7;
    color: #166534;
}

.status-nonaktif {
    background: #fee2e2;
    color: #991b1b;
}

tr.disabled {
    background: #f9fafb;
    color: #9ca3af;
}

.aksi-pengguna {
    display: flex;
    align-items: center;
    gap: 7px;
}

.aksi-pengguna form {
    margin: 0;
}

.btn-edit,
.btn-hapus {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-edit {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.btn-edit:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-hapus {
    border: 1px solid #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.btn-hapus:hover {
    background: #b91c1c;
}

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .filter-pengguna {
        padding: 16px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .btn-filter,
    .btn-reset {
        width: 100%;
        box-sizing: border-box;
    }
}
/* start select 2 */

/* Samakan tinggi Select2 dengan input filter */
.filter-pengguna .select2-container {
    width: 100% !important;
    min-width: 0;
    font-size: 13px;
}

/* Kotak dropdown */
.filter-pengguna
.select2-container--default
.select2-selection--single {
    height: 42px;
    display: flex;
    align-items: center;

    background-color: #ffffff;
    border: 1px solid #cfd6e1;
    border-radius: 7px;

    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Teks pilihan */
.filter-pengguna
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    display: block;
    width: 100%;
    padding: 0 34px 0 12px;

    line-height: normal;
    color: #374151;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Warna placeholder */
.filter-pengguna
.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
    color: #9ca3af;
}

/* Posisi panah dropdown */
.filter-pengguna
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 40px;
    width: 30px;
    top: 0;
    right: 2px;
}

/* Efek saat dropdown dipilih */
.filter-pengguna
.select2-container--default.select2-container--open
.select2-selection--single,
.filter-pengguna
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Daftar pilihan */
.select2-container--default .select2-dropdown {
    margin-top: 4px;
    overflow: hidden;

    border: 1px solid #dbe1e8;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Kolom pencarian Select2 */
.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default
.select2-search--dropdown
.select2-search__field {
    width: 100%;
    padding: 8px 10px;

    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    font-size: 13px;
}

.select2-container--default
.select2-search--dropdown
.select2-search__field:focus {
    border-color: #3b82f6;
}

/* Item pilihan */
.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 13px;
    color: #374151;
}

/* Pilihan yang disorot */
.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Pilihan aktif */
.select2-container--default
.select2-results__option[aria-selected="true"] {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Responsif */
@media (max-width: 576px) {
    .filter-pengguna .select2-container--default
    .select2-selection--single {
        height: 42px;
    }
}

.filter-toggle-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0 12px;
}

.btn-toggle-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 42px;
    padding: 10px 16px;

    background: #ffffff;
    color: #374151;
    border: 1px solid #dbe1e8;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s, border-color 0.2s;
}

.btn-toggle-filter:hover {
    background: #f8fafc;
    border-color: #93b4f5;
}

.btn-toggle-filter > i:first-child {
    color: #2563eb;
}

.btn-toggle-filter .toggle-icon {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.25s ease;
}

/* Ikon berputar saat filter dibuka */
.btn-toggle-filter[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Jarak section ketika dibuka */
.filter-pengguna {
    margin: 0 0 22px;
}

/* Hormati atribut hidden */
.filter-pengguna[hidden] {
    display: none !important;
}

@media (max-width: 576px) {
    .btn-toggle-filter {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-toggle-filter .toggle-icon {
        margin-left: auto;
    }
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0 6px 6px 0 !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single
.select2-selection__rendered {
    line-height: normal !important;
    padding-left: 12px;
    color: #333;
}

.select2-container--default .select2-selection--single
.select2-selection__arrow {
    height: 40px !important;
}

.select2-dropdown {
    border-color: #ced4da;
    border-radius: 6px;
    overflow: hidden;
}

.paket-option {
    padding: 5px 0;
}

.paket-option small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #2563eb;
}

/* Wrapper Select2 di dalam input-group */
.input-group .select2-container {
    flex: 1 1 0%;
    width: 0 !important;
    min-width: 0;
}

.input-group .select2-container .select2-selection--single {
    height: 46px !important;
    border: 1px solid #d5deea !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Teks pilihan */
.input-group .select2-container--default
.select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    padding: 0 38px 0 14px !important;
    line-height: normal !important;
    color: #243247;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tombol clear: kecil dan tidak mengganggu teks */
.input-group .select2-container--default
.select2-selection--single .select2-selection__clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    width: 16px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
}

/* Sisakan ruang untuk tombol clear saat pilihan terisi */
.input-group .select2-container--default
.select2-selection--single:has(.select2-selection__clear)
.select2-selection__rendered {
    padding-left: 34px !important;
}

/* Panah dropdown */
.input-group .select2-container--default
.select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 0;
    right: 8px;
    height: 44px !important;
    width: 18px;
}

/* Placeholder */
.input-group .select2-container--default
.select2-selection--single .select2-selection__placeholder {
    color: #8491a3;
}

/* Fokus */
.input-group .select2-container--default.select2-container--focus
.select2-selection--single,
.input-group .select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}

/* Label kiri */
.input-group .input-group-text {
    min-width: 130px;
    justify-content: flex-start;
    border-radius: 6px 0 0 6px;
}

/* Dropdown pencarian */
.select2-dropdown {
    border: 1px solid #d5deea !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown
.select2-search__field {
    padding: 9px 11px;
    border: 1px solid #d5deea;
    border-radius: 5px;
    outline: none;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container--default
.select2-results__option--highlighted {
    background-color: #2563eb;
    color: #fff;
}

@media (max-width: 576px) {
    .input-group .input-group-text {
        min-width: 110px;
        padding: 8px;
        font-size: 13px;
    }
}
