/* ===== main.css ===== */
body {
  background-color: rgb(255, 255, 255);
}

/* Remove dropdown carets */
.dropdown-toggle::after,
.no-caret::after {
  display: none !important;
}

/* Make all navbar dropdowns open on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  transition: all 0.5s ease;
  z-index: 1050;
  position: absolute;
}

/* Custom non-navbar dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  padding: 10px 20px;
  background-color: #a7cff9;
  color: white;
  border-radius: 4px;
}

/* Legacy dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #fdefef;
}

/* Table dropdown and hover customization */
.dropdown-item:hover {
  background-color: #9cc9ff;
}

/* Prevent clipping inside responsive table containers */
.table-responsive {
  overflow: visible !important;
}

/* ===== Leave CSS ===== */
.border-purple {
  border-color: purple !important;
}

.text-purple {
  color: purple !important;
}

.analysis-divider-row {
  border-bottom: 2px dotted #ccc;
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.analysis-divider-col {
  border-right: 2px dotted #ccc;
}

.analysis-divider-col:last-child {
  border-right: none;
}

/* ===== login.css ===== */
#intro {
  background-image: url("../images/background_image.jpeg");
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-popup {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
}

.show-popup {
  display: block !important;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn-login-trigger {
  background-color: #051697;
  color: white;
  border-radius: 50px;
  padding: 12px 32px;
  transition: background-color 0.3s ease;
}

.btn-login-trigger:hover {
  background-color: #ffffff;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #720303;
}

@media (max-width: 768px) {
  .login-popup {
    width: 90% !important;
  }
}

.input-group .form-control {
  border-radius: 0.375rem;
}

.input-group-text {
  background-color: #64aaff;
  border-right: none;
}

.form-control:focus {
  box-shadow: none;
}

.toggle-password {
  cursor: pointer;
  background-color: #a6b6c1;
  border-left: none;
}

/* Stronger and specific style for input fields */
.input-group .form-control,
.input-group .form-control:focus {
  border: 2px solid #9f9f9f !important;
  box-shadow: none !important;
  outline: none !important;
}

/*Loading Pages hapa*/
#page-loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.dots-loader {
  display: flex;
  gap: 15px;
}

.dots-loader .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.dot-1 { background-color: #2001e8; animation-delay: 0s; }
.dot-2 { background-color: #00ff22; animation-delay: 0.2s; }
.dot-3 { background-color: #ff0000; animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
}

.flatpickr-disabled {
  background-color: #f5c6cb !important;
  color: #999 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

