/* === Navbar Enhancement === */
.layout-navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  padding: 0.75rem 0;
}

.navbar-brand {
  min-width: 200px;
}

/* Mobile toggle icon */
.navbar-toggler {
  border: none;
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  color: #1E3555;
}

/* === Hover Enhancement untuk Navbar === */

/* 🔹 Menu Navigasi */
.nav-link-custom {
  color: #1E3555;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  line-height: 1.4;
}

/* Hover: highlight lembut + sedikit angkat */
.nav-link-custom:hover {
  color: #0c2240;
  background-color: rgba(30, 53, 85, 0.08);
  transform: translateY(-1px);
}

/* Active state: lebih tegas */
.nav-link-custom.active {
  color: #0c2240;
  font-weight: 700;
  background-color: rgba(30, 53, 85, 0.12);
}

/* Optional: subtle shadow saat active/hover */
.nav-link-custom.active,
.nav-link-custom:hover {
  box-shadow: 0 2px 6px rgba(30, 53, 85, 0.06);
}

/* 🔹 Tombol Auth (Desktop) */
.btn-outline-primary:hover {
  background-color: #1E3555;
  color: white;
  border-color: #1E3555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 53, 85, 0.15);
}

.btn-primary:hover {
  background-color: #0c2240;
  border-color: #0c2240;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 53, 85, 0.2);
}

/* 🔹 Dropdown Profil (Desktop) */
.dropdown-menu {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* .dropdown-item:hover {
  background-color: rgba(30, 53, 85, 0.06);
  color: #0c2240;
} */

/* 🔹 Avatar di Navbar */
.avatar img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover .avatar img {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsif: sembunyikan menu di mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .navbar-nav .nav-link {
    color: #1E3555 !important;
    padding: 0.5rem 0;
  }
}

/* Hover effect untuk tombol auth */
.btn-outline-primary:hover {
  background-color: #1E3555;
  color: white;
  border-color: #1E3555;
}

/* Avatar kecil di navbar */
.avatar img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

/* Responsive style */
@media (max-width: 767.98px) {
  .user-profile-header-banner img {
    height: 150px;
  }
  .user-profile-header .user-profile-img {
    width: 100px;
  }
}
/* Tombol melayang */
.live-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1080;
}

/* Panel chat default (desktop) */
.chat-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 320px;
  max-height: 450px;
  display: none;
  flex-direction: column;
  z-index: 1080;
  border-radius: 1rem;
}

.chat-body {
  overflow-y: auto;
  max-height: 300px;
}

/* Animasi */
.chat-panel.show {
  display: flex;
  animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Mobile - Fullscreen chat */
@media (max-width: 768px) {
  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .chat-body {
    max-height: calc(100% - 110px);
  }
}

.chat-body {
  max-height: 400px;
  overflow-y: auto;
}

.chat-message.incoming .message-bubble {
  max-width: 70%;
}

.chat-message.outgoing .message-bubble {
  max-width: 70%;
}

.chat-message.incoming img {
  align-self: flex-start;
}

.chat-message.outgoing {
  text-align: right;
}



/*---------- Small footer -------------------*/
/* === Footer Enhancement === */
footer.dark-footer {
  background: linear-gradient(180deg, #12263a 0%, #0f1e2f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .footer-link {
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  padding: 4px 0;
}

footer .footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

footer h5 {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

footer .footer-social-icon {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

footer .footer-social-icon:hover {
  background: #1E3555;
  color: white !important;
  transform: translateY(-3px);
}

/* Mobile spacing */
@media (max-width: 767.98px) {
  footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  footer .text-muted {
    font-size: 0.875rem;
  }
}

.lowongan-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lowongan-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}