/* =========================
   Small Box Icon Adjustment
========================= */

.small-box {
  position: relative;
  overflow: hidden;
}

.small-box .small-box-icon {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 65px;
  opacity: 1;
  line-height: 1;
}

.legend-dot {
  width: 18px;
  height: 8px;
  border-radius: 10px;
}

/* =============================
   PREMIUM TABLE STYLE
============================= */

.table-card {
  border-radius: 12px;
}

.table-card .card-header {
  padding: 1rem 1.25rem;
}

.table.datatable thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.table.datatable tbody tr {
  transition: all 0.15s ease;
}

.table.datatable tbody tr:hover {
  background-color: #f8f9fa;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 6px;
  padding: 4px 25px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 6px;
  padding: 4px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #ea9749 !important;
  color: #fff !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 13px;
  color: #6c757d;
}
/* =============================
   PREMIUM TABLE STYLE
============================= */

/* =============================
   BADGE PESAN MASUK
============================= */
/* Kustomisasi Dropdown Notifikasi */
.dropdown-notification {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  width: 350px;
  max-width: 100vw; /* Agar tidak meluber di HP */
}

/* Header Dropdown */
.dropdown-notification-header {
  background-color: #d5d5d5;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Area List Pesan yang bisa di-scroll */
.dropdown-notification-list {
  max-height: 320px;
  overflow-y: auto;
}

/* Kustomisasi Scrollbar agar elegan */
.dropdown-notification-list::-webkit-scrollbar {
  width: 6px;
}
.dropdown-notification-list::-webkit-scrollbar-thumb {
  background-color: #dee2e6;
  border-radius: 10px;
}
.dropdown-notification-list::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Desain Item Pesan */
.notif-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.notif-item:hover {
  background-color: #f8f9fa;
}
.notif-item:last-child {
  border-bottom: none;
}

/* Indikator Pesan Belum Dibaca */
.notif-item.unread {
  background-color: #f0f7ff; /* Biru sangat muda */
}
.notif-item.unread:hover {
  background-color: #e6f2ff;
}

/* Footer Dropdown */
.dropdown-notification-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.dropdown-notification-footer a {
  text-decoration: none;
  color: #0d6efd;
}
.dropdown-notification-footer a:hover {
  color: #c21198;
}
/* =============================
   BADGE PESAN MASUK
============================= */

/* =============================
   LOGIN
============================= */

/* Latar Belakang Gradien Modern */
body.login-page {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  position: relative;
  overflow: hidden;
}

/* Ornamen Lingkaran Estetik di Latar Belakang */
body.login-page::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  z-index: 0;
}
body.login-page::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.1);
  z-index: 0;
}

/* Modifikasi Kartu Login */
.login-box {
  width: 420px;
  z-index: 1;
}
.card-login {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Sentuhan pada Input Group agar lebih elegan */
.input-group-text {
  background-color: #f8f9fa;
  border-left: none; /* Menghilangkan garis pembatas tengah */
  color: #6c757d;
}
.form-control {
  background-color: #f8f9fa;
  border-right: none; /* Menghilangkan garis pembatas tengah */
}
.form-control:focus {
  background-color: #ffffff;
  box-shadow: none;
  border-color: #0d6efd;
}
/* Mengubah warna border ikon saat input focus */
.form-control:focus + .input-group-text {
  background-color: #ffffff;
  border-color: #0d6efd;
}

/* =============================
   LOGIN
============================= */

/* Tindak Lanjut Status WBS */

/* Styling khusus radio status agar terlihat seperti kartu interaktif */
.status-option .btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-width: 2px;
}

.status-option .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Warna teks saat radio terpilih */
.status-option .btn-check:checked + .btn-outline-warning {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

.status-option .btn-check:checked + .btn-outline-info {
  background-color: #0dcaf0;
  color: #000;
  border-color: #0dcaf0;
}

.status-option .btn-check:checked + .btn-outline-primary {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.status-option .btn-check:checked + .btn-outline-success {
  background-color: #198754;
  color: #fff;
  border-color: #198754;
}

.status-option .btn-check:checked + .btn-outline-danger {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* Tindak Lanjut Status WBS */

/* CSS DASHBOARD ADMIN */

/* CSS Tambahan untuk Efek Modern */
.hover-lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-box-lg {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

/* CSS DASHBOARD ADMIN */


/* USER DROPDOWN NAVBAR */

/* 1. Animasi Muncul Dropdown (Smooth Slide & Fade) */
.user-dropdown-modern {
  animation: dropFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  min-width: 280px;
}

@keyframes dropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. Efek Kapsul pada Tombol Navbar */
.user-toggle-pill {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.user-toggle-pill:hover,
.user-toggle-pill:focus {
  background-color: #e2e6ea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 3. Efek Hover Dinamis pada Item Menu */
.user-dropdown-modern .dropdown-item {
  transition: all 0.2s ease-in-out;
  padding: 12px 24px;
  border-radius: 8px;
  margin: 0 10px;
  width: auto;
}

.user-dropdown-modern .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
  /* Menu sedikit bergeser ke kanan saat disorot */
}

/* 4. Kotak Ikon Estetik (Squircle) */
.icon-box-user {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* Perubahan warna ikon saat di-hover */
.dropdown-item:hover .icon-box-primary {
  background-color: #c5a059 !important;
  color: #fff !important;
}

.dropdown-item:hover .icon-box-danger {
  background-color: #7c191e !important;
  color: #fff !important;
}

/* USER DROPDOWN NAVBAR */

