.nav-link {
  color: rgb(0, 0, 0, 1); /* Default color */
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease-in-out; /* Smooth color transition */
}

.nav-link:hover,
.nav-link:focus {
  color: #b61e2d !important; /* text-primary-600 color */
  font-weight: bold;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust spacing */
  width: 100%;
  height: 3px; /* Thickness of the underline */
  background-color: #b61e2d; /* Same as text-primary-600 */
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1); /* Show underline on hover/focus */
}

.floating-button {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.panic-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Custom Styling for Panic Popup */
.panic-popup .webix_win_head {
  background-color: transparent !important;
  border-bottom: none !important;
}

.panic-popup {
  background: transparent;
  border: none;
  margin-top: 30px;
}

.panic-popup .webix_win_body {
  background: white;
  padding: 5px;
  text-align: center;
}

.panic-btn {
  width: 100px;
}

.panic-btn .webix_el_box button {
  background: white !important; /* Make background white */
  border: 2px solid #be1e2d !important; /* Red outline */
  color: #be1e2d !important;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
  text-align: center;
}

.panic-btn .webix_el_box button:hover,
.panic-btn .webix_el_box button:focus {
  background: #be1e2d !important; /* Make background white */
  border: 2px solid #be1e2d !important; /* Red outline */
  color: white !important;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
  text-align: center;
}

/* Hide Mobile Menu Initially */
.mobile-nav {
  display: none;
  background: white;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
}

/* Mobile Menu Links */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  padding: 10px;
}

.mobile-nav ul li a {
  text-decoration: none;
  font-size: 18px;
  color: black;
}

/* Mobile Buttons */
.mobile-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Style Mobile Buttons */
.mobile-buttons .btn {
  width: 80%;
  text-align: center;
}

/* Fix Navbar Alignment */
.navbar-header-lp {
  padding: 10px 20px;
}

/* Hamburger Menu Button */
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
}

.search-bar {
    position: relative;
}

#suggestionsBox {
    position: absolute;
    top: 100%;
    left: 150;
    width: 15%;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    border: 1px solid rgba(190, 30, 45, 0.3); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    display: none;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: rgba(190, 30, 45, 0.1);  /* Efek hover pada item */
}

.navbar-header-lp {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =====================
   Notification Dropdown
===================== */
#notifBtn {
    position: relative;
    cursor: pointer;
}

#notifCount {
    background-color: #ff4d4f;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
}

/* Header */
.dropdown-menu-lg .m-16 {
    border-bottom: 1px solid #e5e7eb;
}

/* Notification Items */
#notifItems li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    transition: background 0.2s ease;
    cursor: pointer;
}

#notifItems li:hover {
    background-color: #f9fafb;
}

.unread {
    background-color: #eef6ff;
    font-weight: 500;
    border-left: 4px solid #be1e2d;
}

.read {
    background-color: #fff;
    font-weight: normal;
    color: #4b5563;
}

/* Avatar */
.notif-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #be1e2d;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.notif-text {
    flex: 1;
}

.notif-content {
    font-size: 0.90rem;
    display: block;
    margin-bottom: 2px;
    color: #111827;
}

.notif-type {
    display: inline-block;
    background-color: #be1e2d; /* biru lembut */
    color: #fff; /* biru tua */
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px; /* full rounded */
    text-transform: uppercase;
    margin-top: 4px;
}

/* Date */
.notif-date {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* Footer Links */
.notifications-footer a,
.notifications-footer button {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}

.notifications-footer a {
    color: #dc2626;
}

.notifications-footer button {
    color: #2563eb;
}

.notifications-footer a:hover,
.notifications-footer button:hover {
    text-decoration: underline;
}

.badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 9999px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}


#chat-bot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-bot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #BE1E2D;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

#chat-bot-toggle:hover {
    transform: scale(1.1);
}

#chat-box {
    width: 350px;
    height: 450px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    bottom: 90px; /* <--- Diubah di sini */
    right: 25px; /* <--- Diubah di sini */
    z-index: 999;
}

#chat-box.visible {
    display: flex;
}

#chat-header {
    background-color: #BE1E2D;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-input-container {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
}

#user-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 5px 10px;
}

#send-btn {
    background-color: #BE1E2D;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.message {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.user-message {
    background-color: #BE1E2D;
    color: white;
    align-self: flex-end;
}

.bot-message {
    background-color: #e2e2e2;
    color: black;
    align-self: flex-start;
}

#shortcut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Diperkecil */
    margin-top: 10px;
}

#shortcut-buttons button {
    font-size: 0.8rem; /* Diperkecil */
    padding: 5px 10px; /* Diperkecil */
    border-radius: 20px; /* Sangat membulat */
}


/* Ensure Navbar is Responsive */
@media screen and (max-width: 768px) {
  .navbar-header-lp .nav {
    display: none; /* Hide desktop menu */
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
  }

  .mobile-nav {
    display: none;
  }
}
