.select-modern {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Inputs */
.input-modern {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.input-modern:focus {
  background-color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Checkbox Custom Style */
.checkbox-wrapper input:checked + div {
  background-color: #3b82f6;
  border-color: #3b82f6;
}
.checkbox-wrapper input:checked + div svg {
  display: block;
}

/* --- AUTHENTICATION STYLES --- */

/* Utility untuk menyembunyikan elemen secara default jika belum login */
.auth-only {
  display: none !important;
}

/* Jika body punya class 'is-logged-in', tampilkan elemen .auth-only */
body.is-logged-in .auth-only {
  display: inline-flex !important;
}

/* Ganti 'inline-flex' dengan 'block' jika elemen tersebut memang block-level (tapi kebanyakan tombol adalah inline-flex/inline-block) */

/* Login Modal Styles */
#login-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8); /* Slate 900 overlay */
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#login-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.login-box {
  background: white;
  padding: 2.5rem;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative; /* TAMBAHKAN INI */
}

.login-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}

.role-card {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.role-card:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.role-card i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.role-card span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #475569;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

.bell-shake {
  animation: shake 0.5s ease-in-out;
}

/* Styling untuk konten HTML di dalam Modal View */
.content-box {
  line-height: 1.7;
  color: #475569; /* Slate 600 */
}

.content-box p {
  margin-bottom: 0.75rem; /* Jarak antar paragraf */
}

.content-box ul,
.content-box ol {
  margin-left: 1.5rem; /* Indent list */
  margin-bottom: 0.75rem;
  list-style-type: disc; /* Pastikan bullet point muncul */
}

.content-box li {
  margin-bottom: 0.25rem;
}
