/* Glassmorphism Navbar */
.navbar-custom {
  background: #ff7400;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* Link warna putih */
.navbar-custom .nav-link {
  color: #f9e5d5 !important;
  transition: color 0.3s ease;
}

/* Hover link jadi emas */
.navbar-custom .nav-link:hover {
  color: #fff !important;
}

/* Brand/logo */
.navbar-custom .navbar-brand {
  color: #fff !important;
  font-weight: bold;
}

.table th, 
.table td {
  font-size: 14px;   /* perkecil teks */
  white-space: nowrap; /* biar teks nggak turun ke bawah */
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 150px; /* batasi tiap kolom */
}

/* Floating animation for the registration fee circle */
.floating {
  animation: floating 3s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Navbar modern effect */
.navbar-nav .nav-link {
  color: #f1f1f1;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus {
  color: #fff;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  box-shadow: 0 0 8px rgba(42, 82, 152, 0.4);
}

.dropdown-menu {
  animation: fadeIn 0.25s ease-in-out;
}

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

/* --- Navbar Z-index & Layer Fix --- */
.navbar {
  position: relative;
  z-index: 1050; /* pastikan navbar selalu di atas carousel */
}

/* Pastikan dropdown menu selalu muncul di atas carousel dan elemen lain */
.navbar .dropdown-menu {
  z-index: 2000 !important;
}

/* Turunkan z-index carousel supaya tidak menutupi dropdown */
.carousel,
.carousel-inner,
.carousel-item {
  z-index: 1 !important;
}

/* --- Modern Glass Navbar (Blur & Transparency) --- */
.navbar-custom {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: #ff7400; /* biru keunguan transparan */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hover & Scroll Effect */
.navbar-custom:hover {
  background: #ff6700;
}

.navbar-custom.scrolled {
  background: #ff4e00;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Navbar link style */
.navbar-nav .nav-link {
  color: #f8f9fa !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Dropdown always on top of carousel */
.navbar {
  position: relative;
  z-index: 1050;
}

.navbar .dropdown-menu {
  z-index: 2000 !important;
  border-radius: 1rem;
  overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
  z-index: 1 !important;
}

/* Smooth fade for dropdown */
.dropdown-menu {
  animation: fadeIn 0.25s ease-in-out;
}

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

/* --- Custom button style (warna serasi dengan navbar) --- */
.bg-custom {
  background: linear-gradient(90deg, #ff7400, #ff9a00);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(255, 116, 0, 0.4);
}

.bg-custom:hover {
  background: linear-gradient(90deg, #ff9a00, #ff7400);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(255, 116, 0, 0.5);
}

.bg-customblack {
  background: #1a1919;
}