@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --sidebar-bg: #1e1e2f;
  --sidebar-hover: #2c2c44;
  --active-bg: #3b82f6;
  --text-color: #ffffff;
  --icon-color: #a7a9be;
  --content-bg: #f5f6fa;
  --transition: 0.4s ease;
}

:root.light {
  --sidebar-bg: #ffffff;
  --sidebar-hover: #e9ecf3;
  --active-bg: #3b82f6;
  --text-color: #1e1e2f;
  --icon-color: #555;
  --content-bg: #f8f9fc;
}

* {
  box-sizing: border-box;
  transition: background var(--transition), color var(--transition), border var(--transition), text-shadow var(--transition);
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--content-bg);
  display: flex;
  height: 100vh;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.fade-theme { opacity: 0; }

/* =====================================================
   ✨ TRANSISI HALUS LOGIN / LOGOUT
===================================================== */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}


/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--active-bg);
  box-shadow: 0 0 6px var(--active-bg);
  z-index: 2000;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.3s ease;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 280px;
  background: var(--sidebar-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  transition: width var(--transition), transform var(--transition);
  z-index: 1001;
}

.sidebar.collapsed { width: 80px; }
.sidebar.hidden { transform: translateX(-100%); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* === LOGO STYLING === */
.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.sidebar-logo .logo-img {
  width: 150px;
  object-fit: contain;
  transition: all 0.3s ease;
  margin-left : 40px;
}

/* Saat sidebar collapse */
.sidebar.collapsed .sidebar-logo .logo-img {
  width: 30px;
  opacity: 0.9;
  margin-left : 0px;
}

:root.light .sidebar-header { border-bottom: 1px solid #ddd; }
.sidebar-header i.fa-graduation-cap { margin-right: 10px; }
.sidebar.collapsed .sidebar-header span { display: none; }

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  display: block;
}

.toggle-btn-mobile {
  position: fixed;
  top: 5px; left: 5px;
  background: var(--sidebar-bg);
  border: none;
  color: var(--text-color);
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 1100;
  display: none;
}

/* Menu */
.menu {
  list-style: none;
  padding: 15px 0;
  flex-grow: 1;
  margin: 0;
}
.menu li {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  color: var(--icon-color);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.menu li i {
  font-size: 20px; width: 30px; text-align: center;
  margin-right: 15px; transition: transform var(--transition), color var(--transition);
}
.menu li:hover { background: var(--sidebar-hover); color: var(--text-color); }
.menu li:hover i { transform: scale(1.2); color: var(--text-color); }
.menu li.active { background: var(--active-bg); color: #fff; }
.menu li.active i { color: #fff; }
.sidebar.collapsed .menu li span { display: none; }

/* Submenu */
.submenu-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: #2a2a40;
}
:root.light .submenu-wrapper { background: #f1f3f8; }
.submenu { list-style: none; padding: 0; margin: 0; }
.submenu li {
  display: flex;
  align-items: center;
  padding: 12px 35px;
  color: var(--icon-color);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.submenu li i {
  font-size: 20px; width: 30px; text-align: center;
  margin-right: 15px; transition: transform var(--transition), color var(--transition);
}
.submenu li:hover { background: var(--sidebar-hover); color: var(--text-color); }
.submenu li:hover i { transform: scale(1.2); color: var(--text-color); }
.submenu li.active { background: var(--active-bg); color: #fff; }
.submenu li.active i { color: #fff; }

/* Arrow */
.arrow {
  margin-left: auto;
  font-size: 13px;
  transition: transform var(--transition);
}
.has-sub.open .arrow { transform: rotate(90deg); color: var(--active-bg); }

/* Footer (theme switch) */
.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
:root.light .sidebar-footer { border-top: 1px solid #ddd; }

.theme-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.theme-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.6s ease, color 0.3s ease;
}
.theme-btn:hover {
  transform: rotate(20deg) scale(1.2);
  color: var(--active-bg);
}
.theme-btn.rotate {
  transform: rotate(360deg);
  transition: transform 0.6s ease;
  text-shadow: 0 0 8px var(--active-bg);
}
.theme-label {
  font-size: 12px;
  color: var(--icon-color);
  letter-spacing: 0.5px;
  user-select: none;
}
:root.light .theme-label { color: #555; }

/* Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition);
  z-index: 1000;
}
.overlay.show { opacity: 1; visibility: visible; }

/* Content */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 20px;
  transition: margin-left var(--transition), opacity 0.4s ease;
  opacity: 1;
}
.content.fade-out { opacity: 0; }
.content.fade-in { opacity: 1; }
.sidebar.collapsed ~ .content { margin-left: 80px; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 250px; }
  .sidebar.show { transform: translateX(0); }
  .toggle-btn-mobile { display: block; }
  .toggle-btn { display: none; }
  .content { margin-left: 0; padding-top: 70px; }
}

/* === Dashboard Pendataan Haid === */

.dashboard-container {
  padding: 0px;
  align-items: center;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header h2 {
  font-size: 25px;
  font-weight: 600;
  color: #333;
}

.user-greeting {
  color: #333;
  font-size: 16px;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1e293b;
}

.form-group {
  margin-bottom: 18px;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  transition: 0.3s;
}

.form-card input:focus,
.form-card select:focus {
  border-color: var(--active-bg);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.btn-save {
  width: 100%;
  padding: 12px;
  background: var(--active-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-save:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* === FORM === */

.form-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0px auto;
  transition: 0.4s ease;
}

.form-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.form-group select,
.form-group input[type="date"],
.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  background-color: #fff;
  color: #111;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Hilangkan gaya default iOS */
  appearance: none;
}

/* Tambahan agar tetap konsisten di iPhone Safari */
.form-group input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  width: 100%;
  height : 18px
}

@supports (-webkit-touch-callout: none) {
  .form-group input[type="date"] {
    font-size: 15px; /* iPhone zoom fix saat tap input */
  }
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.btn-save {
  background-color: #3b82f6;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-save:hover {
  background-color: #2563eb;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background-color: #16a34a; }
.toast.error { background-color: #dc2626; }
.toast.info { background-color: #2563eb; }


/* ===============================
   📱 Responsive & Clean Layout
   =============================== */

/* === FIX RESPONSIVE MOBILE WIDTH === */
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden !important;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

.content, .riwayat-container, .filter-bar, .table-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* === Table Wrapper === */
.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

#tabelRiwayat {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#tabelRiwayat th,
#tabelRiwayat td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #C9CCD1;
}

#tabelRiwayat th {
  background-color: #e5e7eb;
  color: #1f2937;
  font-weight: 600;
}

#tabelRiwayat tr:hover {
  background-color: #f9fafb;
}

/* === Filter Card === */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  background: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.filter-bar h2 {
  grid-column: 1 / -1;
  font-size: 20px;
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* === Filter Input Fields === */
.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 5px;
}

.filter-group #label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 5px;
  text-align: center;
}

.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="text"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  background-color: #fff;
  color: #111;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Hilangkan gaya default iOS */
  appearance: none;
}

/* Tambahan agar tetap konsisten di iPhone Safari */
.filter-group input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  width: 100%;
  height : 18px
}

@supports (-webkit-touch-callout: none) {
  .filter-group input[type="date"] {
    font-size: 15px; /* iPhone zoom fix saat tap input */
  }
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.filter-group button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  min-width: 100px;
}

/* === Filter Buttons === */
.filter-actions {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.filter-actions button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  min-width: 100px;
}

.btn-export {
  background-color: #22c55e;
  color: #fff;
}
.btn-export:hover {
  background-color: #16a34a;
}

.btn-pdf {
  background-color: #ef4444;
  color: #fff;
}
.btn-pdf:hover {
  background-color: #dc2626;
}

.btn-print {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-print:hover {
  background-color: #2563eb;
}

.btn-reset {
  background-color: #6b7280;
  color: #fff;
}
.btn-reset:hover {
  background-color: #4b5563;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .content {
    padding: 10px;
    margin: 0;
  }
  .filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
  }
  .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .filter-actions button {
    width: 100%;
    font-size: 15px;
    border-radius: 8px;
  }
  #tabelRiwayat th, #tabelRiwayat td {
    font-size: 13px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pagination button {
  background: #e5e7eb;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.pagination button.active {
  background: #3b82f6;
  color: white;
  font-weight: 600;
}

.pagination button:hover:not(:disabled) {
  background: #2563eb;
  color: white;
}

.pagination button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pagination span {
  color: #777;
  padding: 0 3px;
}

.data-info {
  text-align: center;
  font-size: 15px;
  color: #444;
  margin-top: 20px;
}

.fade-pagination {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #111827;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fade-pagination:hover {
  background-color: #2563eb;
  color: #fff;
  transform: scale(1.05);
}

.fade-pagination.active {
  background-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

/* ================================
   🎨 Modern Pagination Style
   ================================ */
#paginationControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-top: 16px;
  user-select: none;
}

#paginationControls button {
  background: var(--btn-bg, #f4f5f7);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#paginationControls button:hover:not(:disabled) {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(37,99,235,0.2);
}

#paginationControls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
}

#paginationControls button.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(37,99,235,0.25);
}

#paginationControls span {
  padding: 6px 6px;
  font-size: 14px;
  color: #6b7280;
}

/* Info teks di bawah tabel */
#dataInfo {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

/* Efek smooth muncul saat pagination berganti */
.fade-pagination {
  animation: fadePagination 0.25s ease-in-out;
}

@keyframes fadePagination {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  #paginationControls button {
    padding: 5px 9px;
    font-size: 13px;
  }
}

/* === CETAK LAPORAN === */
@media print {
  body * {
    visibility: hidden;
  }
  .print-container, .print-container * {
    visibility: visible;
  }
  .print-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 30px;
  }
  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }
  .print-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
  }
  .print-header p {
    margin: 2px 0;
    font-size: 12px;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
  }
  .print-table th, .print-table td {
    border: 1px solid #333;
    padding: 6px 8px;
    text-align: center;
  }
  .print-footer {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }
  .print-footer .sign {
    text-align: center;
    width: 45%;
  }
}

/* REKAP */

.rekap-container {
  padding: 20px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rekap-filter {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rekap-filter label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.rekap-filter select,
.rekap-filter input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  background-color: #fff;
  color: #111;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Hilangkan gaya default iOS */
  appearance: none;
}

/* Tambahan agar tetap konsisten di iPhone Safari */
.rekap-filter input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  width: 100%;
  height : 19px
}

@supports (-webkit-touch-callout: none) {
  .rekap-filter input[type="date"] {
    font-size: 15px; /* iPhone zoom fix saat tap input */
  }
}

.rekap-table-wrapper {
  overflow-x: auto;
}

#rekapTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

#rekapTable th, #rekapTable td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: center;
}

#rekapTable th {
  background: #f5f5f5;
  font-weight: 600;
}

#rekapTable tr:hover {
  background-color: #fafafa;
}

.rekap-check {
  color: #d63384;
  font-weight: bold;
}

.rekap-empty {
  color: #ccc;
}

/* REKAP */

.rekap-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.filter-row select,
.filter-row input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  background-color: #fff;
  color: #111;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Hilangkan gaya default iOS */
  appearance: none;
}

.filter-row select:focus,
.filter-row input:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-success {
  background-color: #22c55e;
  color: white;
}
.btn-success:hover { background-color: #16a34a; }

.btn-danger {
  background-color: #ef4444;
  color: white;
}
.btn-danger:hover { background-color: #dc2626; }

.btn-primary {
  background-color: #3b82f6;
  color: white;
}
.btn-primary:hover { background-color: #2563eb; }

.table-wrapper-rekap {
  overflow-x: auto;
  border-radius: 8px;
}

/* 🌸 Modal konfirmasi SEHATI */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  animation: fadeInUp 0.3s ease;
}

.modal-box h3 {
  margin-bottom: 10px;
  color: var(--text-primary, #333);
  font-size: 18px;
}

.modal-box p {
  font-size: 15px;
  color: var(--text-secondary, #666);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-actions button {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.btn-ya {
  background: #ff6699;
  color: white;
}

.btn-ya:hover {
  background: #ff4d88;
}

.btn-tidak {
  background: #ddd;
  color: #333;
}

.btn-tidak:hover {
  background: #ccc;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   📘 MODAL KHUSUS SHARING BACAAN
   ================================ */

.modal-bacaan {
  display: none; /* default hidden */
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

/* Kontainer isi modal */
.modal-bacaan.show {
  display: flex;
  animation: fadeInBacaan 0.3s ease;
}

@keyframes fadeInBacaan {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-bacaan-box {
  background: var(--content-bg, #fff);
  color: var(--text-color, #1e293b);
  width: 95%;
  max-width: 480px;
  border-radius: 16px;
  padding: 25px 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  position: relative;
  transform: translateY(-10px);
  animation: slideUpBacaan 0.35s ease forwards;
}

@keyframes slideUpBacaan {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Modal */
.modal-bacaan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-bacaan-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-bacaan-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--icon-color, #555);
  transition: transform 0.2s, color 0.3s;
}

.modal-bacaan-close:hover {
  color: var(--active-bg, #2563eb);
  transform: rotate(90deg);
}

/* Form Input */
.modal-bacaan form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-bacaan label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color, #1e293b);
  margin-bottom: 4px;
}

.modal-bacaan input[type="text"],
.modal-bacaan input[type="number"],
.modal-bacaan input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.2s ease;
  background: #fff;
  color: #111;
}

:root.light .modal-bacaan input {
  background: #fff;
}

.modal-bacaan input:focus {
  border-color: var(--active-bg, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Checkbox */
.modal-bacaan .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Footer tombol */
.modal-bacaan-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Tombol simpan & batal */
.modal-bacaan .btn-save {
  background-color: var(--active-bg, #3b82f6);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-bacaan .btn-save:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.modal-bacaan .btn-cancel {
  background: #e5e7eb;
  border: none;
  color: #111827;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-bacaan .btn-cancel:hover {
  background: #d1d5db;
}

/* Responsif */
@media (max-width: 600px) {
  .modal-bacaan-box {
    width: 92%;
    padding: 18px 20px;
  }

  .modal-bacaan-header h3 {
    font-size: 1.1rem;
  }

  .modal-bacaan .btn-save,
  .modal-bacaan .btn-cancel {
    flex: 1;
    width: 100%;
  }

  .modal-bacaan-footer {
    flex-direction: column;
  }
}

/* ===========================================================
   🎨 KHUSUS HALAMAN SHARING BACAAN
   Tidak bentrok dengan halaman lain (prefix .sharing-bacaan)
   =========================================================== */

.sharing-bacaan {
  font-family: "Poppins", sans-serif;
  min-height: calc(100vh - 100px);
}

/* ==== Header ===== */
.sharing-bacaan .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sharing-bacaan .header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==== TABEL ===== */
.sharing-bacaan .table-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.sharing-bacaan table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.sharing-bacaan th,
.sharing-bacaan td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}

.sharing-bacaan thead {
  background: #f1f5f9;
  font-weight: 600;
  color: #1f2937;
}

.sharing-bacaan tbody tr:hover {
  background-color: #f9fafb;
}

/* Icon Status */
.sharing-bacaan .status {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sharing-bacaan .status.yes { color: #16a34a; }
.sharing-bacaan .status.no { color: #dc2626; }

/* ==== MODAL ===== */
.sharing-bacaan .modal-bacaan {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.sharing-bacaan .modal-bacaan.show {
  display: flex;
}

.sharing-bacaan .modal-bacaan-box {
  background: #fff;
  width: 95%;
  max-width: 480px;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  animation: fadeInModal 0.25s ease;
}
@keyframes fadeInModal {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.sharing-bacaan .modal-bacaan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.sharing-bacaan .modal-bacaan-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}
.sharing-bacaan .modal-bacaan-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #555;
  cursor: pointer;
}

.sharing-bacaan form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sharing-bacaan label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}

.sharing-bacaan input[type="text"],
.sharing-bacaan input[type="date"],
.sharing-bacaan input[type="number"] {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  width: 100%;
  transition: border 0.2s;
}
.sharing-bacaan input:focus {
  border-color: #2563eb;
  outline: none;
}

/* === Dropdown (Select) Styling === */
.sharing-bacaan select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  color: #111827;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sharing-bacaan select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.sharing-bacaan select:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.sharing-bacaan label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 2px;
}

/* === Dropdown icon panah di kanan === */
.sharing-bacaan select {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.sharing-bacaan .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sharing-bacaan .modal-bacaan-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.sharing-bacaan .btn-save {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.sharing-bacaan .btn-save:hover { background: #1e40af; }

.sharing-bacaan .btn-cancel {
  background: #e5e7eb;
  color: #111827;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}
.sharing-bacaan .btn-cancel:hover { background: #d1d5db; }

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .sharing-bacaan .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sharing-bacaan table th,
  .sharing-bacaan table td {
    font-size: 0.8rem;
  }
  
  .sharing-bacaan select,
  .sharing-bacaan input {
    font-size: 0.85rem;
  }
}

/* === Responsif untuk layar kecil === */
@media (max-width: 480px) {
  .sharing-bacaan select,
  .sharing-bacaan input {
    font-size: 0.85rem;
  }
}

.modal-box .btn-link {
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.modal-box .btn-link {
  background: #2563eb;
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.modal-box .btn-link:hover {
  background: #1e40af;
}

.modal-box .modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.hidden {
  display: none !important;
  transition: opacity 0.3s ease;
}


/* ==========================================================
   👑 STYLING KHUSUS HALAMAN MANAJEMEN USER ADMIN
   ========================================================== */
.manage-user-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #222);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.manage-user-page .table-wrapper {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.manage-user-page .table-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.manage-user-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.manage-user-page thead {
  background: #f8f9fa;
  font-weight: 600;
}

.manage-user-page th,
.manage-user-page td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.manage-user-page th {
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #666;
}

.manage-user-page td {
  color: #333;
}

.manage-user-page tr:hover td {
  background: #fef6f6;
}

/* Tombol utama */
.btn-tambah {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-tambah:hover {
  background: #0056d2;
}

.btn-upload {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-upload:hover {
  background: #15803d;

}
.btn-template {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-template:hover {
  background: #1d4ed8;
}

/* Tombol aksi */
.btn-action,
.btn-hapus {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0 2px;
  transition: 0.2s;
}

.btn-action {
  background: #3b82f6;
  color: #fff;
}

.btn-action:hover {
  background: #044BBF;
}

.btn-hapus {
  background: #dc3545;
  color: #fff;
}

.btn-hapus:hover {
  background: #B30213;
}

/* ==========================================================
   👑 MODAL TAMBAH / EDIT USER (Styling Modern)
   ========================================================== */
.manage-user-page .modal-bacaan-box {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  padding: 24px 26px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInModal 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-user-page .modal-bacaan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.manage-user-page .modal-bacaan-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.manage-user-page .modal-bacaan-header h3::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #16a34a;
}

.manage-user-page .modal-bacaan-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.manage-user-page .modal-bacaan-close:hover {
  color: #111;
}

.manage-user-page form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.manage-user-page form label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}

.manage-user-page form input,
.manage-user-page form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.manage-user-page form input:focus,
.manage-user-page form select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.manage-user-page .modal-bacaan-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.manage-user-page .btn-cancel {
  background: #9ca3af;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.manage-user-page .btn-cancel:hover {
  background: #6b7280;
}

.manage-user-page .btn-save {
  background: #15803d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.manage-user-page .btn-save:hover {
  background: #166534;
  transform: scale(1.02);
}

/* Animasi */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsif */
@media (max-width: 600px) {
  .manage-user-page th,
  .manage-user-page td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .btn-action,
  .btn-hapus {
    padding: 5px 8px;
  }
}

/* 🔹 Modal Manajemen User */
#modalUserAdmin {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 999;
}

#modalUserAdmin.show {
  display: flex !important;
  opacity: 1;
}

/* 🔹 Kotak modal */
#modalUserAdmin .modal-bacaan-box {
  background: #fff;
  border-radius: 12px;
  width: 380px;
  padding: 20px 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

#modalUserAdmin.show .modal-bacaan-box {
  transform: translateY(0);
}

/* 🔹 Header */
#modalUserAdmin .modal-bacaan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

#modalUserAdmin .modal-bacaan-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

#modalUserAdmin .modal-bacaan-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}

#modalUserAdmin .modal-bacaan-close:hover {
  color: #d00;
}

/* 🔹 Footer tombol */
#modalUserAdmin .modal-bacaan-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* =====================================================
   💗 LOGIN PAGE — Pink Floating Label + Animated Gradient
===================================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(255, 105, 180, 0.25);
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d63384;
  margin-bottom: 2rem;
}

.login-logo img {
  width: 200px;
  height: auto;
  margin-bottom: 3rem;
}

/* Floating label fields */
.input-field {
  position: relative;
  margin-bottom: 2rem;
}

.input-field input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #f1a3c3;
  outline: none;
  padding: 10px 0;
  font-size: 15px;
  background: transparent;
  transition: all 0.3s ease;
}

.input-field label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 14px;
  color: #b26c8e;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 13px;
  color: #d63384;
}

.input-field .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff8fb1, #ff66a5, #ffb3c6);
  transition: width 0.4s ease;
}

.input-field input:focus ~ .bar {
  width: 100%;
}

/* Pastikan label tidak menghalangi klik di Edge */
.input-field label { pointer-events: none; }

/* Area klik ikon lebih lebar + berada di atas */
.password-field { position: relative; }

.password-field .toggle-password {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;          /* area klik nyaman */
  cursor: pointer;
  user-select: none;
  z-index: 3;
  color: #b26c8e;
  transition: color .3s ease;
}

.password-field .toggle-password:hover { color: #d63384; }

/* Jangan blokir klik pada ikon */
.password-field .toggle-password i { pointer-events: none; }

/* =====================================================
   ✨ Password Fade Animation
===================================================== */
.password-field input {
  transition: opacity 0.25s ease-in-out;
}

.password-field input.fade-out {
  opacity: 0;
}

.password-field input.fade-in {
  opacity: 1;
}

/* Animated Gradient Button */
.btn-login {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  background: linear-gradient(270deg, #ff85b3, #ff4d97, #ff9ac7);
  background-size: 400% 400%;
  cursor: pointer;
  animation: gradientMove 4s ease infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
  .login-logo img {
    width: 200px;
  }
}

/* User Info */
.user-info {
  margin-bottom: 10px;
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.user-info-label {
  font-size: 15px;
  color: var(--icon-color);
  letter-spacing: 0.5px;
  user-select: none;
}
:root.light .user-info { border-bottom: 1px solid #ddd; }

/* === Modal Konfirmasi Hapus === */
.modal-catatan-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.modal-catatan-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-catatan-content.small {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  width: 360px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-catatan-content.small h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.modal-catatan-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.btn-delete {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-delete:hover {
  background-color: #c82333;
}

.btn-clean-log {
  background: linear-gradient(90deg, #ff85b3, #ff4d97);
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 77, 151, 0.3);
  transition: all 0.3s ease;
}
.btn-clean-log:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #ff4d97, #ff85b3);
}

#tabelLog {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#tabelLog th,
#tabelLog td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #C9CCD1;
}

#tabelLog th {
  background-color: #e5e7eb;
  color: #1f2937;
  font-weight: 600;
}

#tabelLog tr:hover {
  background-color: #f9fafb;
}

#dsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#dsTable th,
#dsTable td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #C9CCD1;
}

#dsTable th {
  background-color: #e5e7eb;
  color: #1f2937;
  font-weight: 600;
}

#dsTable tr:hover {
  background-color: #f9fafb;
}

th.sorted-asc::after {
  content: " ▲";
  color: #007bff;
}
th.sorted-desc::after {
  content: " ▼";
  color: #007bff;
}

#dsDeleteModal .modal-content {
  border-top: 5px solid #dc3545;
}
#dsDeleteModal b {
  color: #dc3545;
}

/* Input iOS */
.ios-block {
    pointer-events: none; 
}
