.text-black {
  color: black;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.ml-1 {
  margin-left: 1rem;
}
.ml-2 {
  margin-left: 2rem;
}

/* TABLE RESPONSIVE */
.table {
  width: 100%;
  border-collapse: collapse;
  background: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: #3e4094;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:hover {
  background: #f5f5f5;
  color: #312450;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    width: 100%;
    font-size: 0.85rem;
  }

  .table th {
    white-space: nowrap;
  }

  .table td {
    white-space: nowrap;
  }
}

.logout-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.dialog-content {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  z-index: 10000;
}

.dialog-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.dialog-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
}

.dialog-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.dialog-buttons button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cancel {
  background: #e0e0e0;
  color: #333;
}

.btn-confirm {
  background: #d32f2f;
  color: white;
}

/* ===============================
   MOBILE BOTTOM NAVIGATION
   =============================== */

/* default: hidden */
#mobile-bottom-nav {
  display: none;
}

@media only screen and (max-width: 768px) {
  /* hide sidebar desktop */
  #sidebar {
    display: none !important;
  }

  /* bottom nav container */
  #mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #312450;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20000;
  }

  /* menu item */
  #mobile-bottom-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  /* active & hover */
  #mobile-bottom-nav a.active,
  #mobile-bottom-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  /* push content up so it’s not covered */
  body {
    padding-bottom: 64px;
  }
}
.alert {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;
  margin: 12px 0;

  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  animation: fadeIn 0.25s ease-in-out;
}

.alert::before {
  content: "";
  width: 4px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.6;
}

/* ICON */
.alert i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* TEXT WRAP BIAR GA OVERFLOW */
.alert span {
  word-break: break-word;
  flex: 1;
}

/* SUCCESS */
.alert-success {
  background-color: #e6f7ee;
  color: #0f5132;
  border: 1px solid #b7ebcd;
}

/* DANGER */
.alert-danger {
  background-color: #fdecea;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.alert-fixed {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 480px) {
  .alert {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .alert i {
    font-size: 16px;
  }
}
