/* === JT Auto Rental Header Styles - NAVY + TEAL THEME === */

/* FIXED: Compact Navigation Bar for Desktop - WHITE BACKGROUND */
.navbar-premium {
  background: #FFFFFF !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  padding: 0.4rem 0 !important;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
  min-height: 50px !important;
}

.navbar-premium.scrolled {
  background: #FFFFFF !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12) !important;
  padding: 0.3rem 0 !important;
  min-height: 48px !important;
}

/* FIXED: Compact Brand Styling - NAVY TEXT + TEAL ICON */
.navbar-brand-premium {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.8rem !important;
  color: #0B132B !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  padding: 0.25rem 0;
}

.navbar-brand-premium span {
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.navbar-brand-premium:hover {
  color: #00B8A9 !important;
  transform: translateY(-1px) scale(1.01);
}

/* FIXED: Brand Logo Image - Square logo support with proper vertical alignment */
.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  transition: all 0.3s ease;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  top: 12px;
}

/* Premium Brand Icon Image */
.brand-icon-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.navbar-brand-premium:hover .brand-icon-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0, 184, 169, 0.4));
}

.navbar-brand-premium:hover .brand-logo {
  transform: scale(1.05);
}

/* Fallback for icon if logo not available */
.brand-icon {
  font-size: 1.5rem;
  animation: brandFloat 4s ease-in-out infinite;
  color: #00B8A9;
  filter: drop-shadow(0 0 8px rgba(0, 184, 169, 0.4));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

@keyframes brandFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(0, 184, 169, 0.4));
  }

  25% {
    transform: translateY(-2px) rotate(1deg);
    filter: drop-shadow(0 0 10px rgba(0, 184, 169, 0.5));
  }

  50% {
    transform: translateY(-3px) rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(0, 184, 169, 0.6));
  }

  75% {
    transform: translateY(-1px) rotate(-0.5deg);
    filter: drop-shadow(0 0 9px rgba(0, 184, 169, 0.4));
  }
}

/* FIXED: Hide ONLY toggle icon on desktop, keep menu items visible */
@media (min-width: 992px) {
  .navbar-toggler-premium {
    display: none !important;
  }

  .collapse.navbar-collapse {
    display: flex !important;
  }
}

/* FIXED: Compact Navigation Links - NAVY TEXT */
.nav-link-premium {
  font-weight: 600;
  font-size: 0.9rem;
  color: #4B5563 !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 0.2rem;
  position: relative;
  letter-spacing: 0.2px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  text-transform: capitalize !important;
}

/* NO underline effects on hover - only color change - TEAL COLOR */
.nav-link-premium:hover,
.nav-link-premium:focus {
  color: #00B8A9 !important;
  transform: translateY(-1px);
}

/* ONLY active links get underline - TEAL */
.nav-link-premium.active {
  color: #00B8A9 !important;
  font-weight: 700;
  position: relative;
}

.nav-link-premium.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 70%;
  height: 2px;
  background: #00B8A9;
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 184, 169, 0.4);
}

.nav-link-premium i {
  font-size: 0.85rem;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.nav-link-premium:hover i {
  opacity: 1;
  transform: scale(1.05);
}

/* Menu item spans also capitalized */
.nav-link-premium span,
.mobile-nav-link span,
.dropdown-item-premium span {
  text-transform: capitalize !important;
}

/* PREMIUM Mobile Toggler - TEAL/NAVY THEME */
.navbar-toggler-premium {
  border: none;
  background: #F3F4F6;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler-premium:hover {
  background: #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.navbar-toggler-premium:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 184, 169, 0.25);
  outline: none;
}

/* Custom Toggler Icon - Hamburger to X - NAVY COLOR */
.toggler-icon {
  position: relative;
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.toggler-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0B132B;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.toggler-icon span:nth-child(1) {
  top: 5px;
}

.toggler-icon span:nth-child(2) {
  top: 10px;
}

.toggler-icon span:nth-child(3) {
  top: 15px;
}

/* X Animation */
.navbar-toggler-premium[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.navbar-toggler-premium[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler-premium[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* PREMIUM Offcanvas Mobile Menu - WHITE BACKGROUND + NAVY TEXT */
.offcanvas-premium {
  background: #FFFFFF !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid #E5E7EB;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  width: 320px !important;
}

.offcanvas-header-premium {
  border-bottom: 1px solid #E5E7EB;
  padding: 1.8rem 1.5rem 1.3rem;
  background: #FFFFFF;
}

.offcanvas-title-premium {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #0B132B;
}

.btn-close-premium {
  background: #F3F4F6;
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  opacity: 1;
  filter: none;
}

.btn-close-premium::before {
  content: '×';
  font-size: 1.4rem;
  color: #0B132B;
  font-weight: 300;
  line-height: 1;
}

.btn-close-premium:hover {
  background: #00B8A9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 184, 169, 0.3);
}

.btn-close-premium:hover::before {
  color: #FFFFFF;
}

.offcanvas-body-premium {
  padding: 1.3rem;
  background: #FFFFFF;
}

.mobile-nav-link {
  color: #4B5563 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem;
  border-radius: 8px;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: capitalize !important;
}

/* Mobile links - NO underline on hover, only active */
.mobile-nav-link:hover {
  color: #00B8A9 !important;
  background: #F9FAFB;
  backdrop-filter: blur(10px);
  transform: translateX(6px);
}

.mobile-nav-link.active {
  color: #00B8A9 !important;
  background: #F9FAFB;
  backdrop-filter: blur(10px);
  transform: translateX(6px);
}

.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00B8A9;
  border-radius: 0 2px 2px 0;
}

.mobile-nav-link i {
  font-size: 1rem;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover i {
  opacity: 1;
  transform: scale(1.05);
}

/* PREMIUM Dropdown Styling - NAVY BACKGROUND WITH LIGHT TEXT */
.dropdown-menu-premium {
  background: #1C2541 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 184, 169, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0.8rem;
  margin-top: 0.4rem;
  min-width: 200px;
  animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item-premium {
  color: #FFFFFF !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 0.15rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  text-transform: capitalize !important;
}

.dropdown-item-premium:hover,
.dropdown-item-premium:focus {
  background: rgba(0, 184, 169, 0.2) !important;
  color: #00B8A9 !important;
  transform: translateX(6px) scale(1.01);
  backdrop-filter: blur(15px);
  box-shadow: 0 3px 12px rgba(0, 184, 169, 0.2);
}

.dropdown-item-premium.active {
  background: rgba(0, 184, 169, 0.25) !important;
  color: #00B8A9 !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 184, 169, 0.2);
  border: 1px solid rgba(0, 184, 169, 0.4);
}

/* FIXED: Local Flag Icons from /assets/img */
.flag-icon {
  width: 1.3em !important;
  height: 0.9em !important;
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  filter: saturate(1.1) contrast(1.05);
  transition: all 0.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* LOCAL flag icon images from /assets/img */
.flag-icon-us {
  background-image: url('/assets/img/flag-us.png');
}

.flag-icon-bd {
  background-image: url('/assets/img/flag-bd.png');
}

.dropdown-item-premium:hover .flag-icon {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* FIXED - Remove ALL unwanted borders on navbar only */
.navbar-premium,
.navbar-premium::before,
.navbar-premium::after {
  border-bottom: none !important;
  border-top: none !important;
}

/* Enhanced Accessibility */
.nav-link-premium:focus,
.dropdown-item-premium:focus,
.navbar-toggler-premium:focus {
  outline: 2px solid rgba(0, 184, 169, 0.6);
  outline-offset: 2px;
}

/* FIX: Navbar flex layout to prevent breaking */
.navbar-premium .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-premium .navbar-collapse {
  flex-grow: 1;
  justify-content: space-between;
}

.navbar-premium .navbar-nav.me-auto {
  flex-wrap: nowrap;
}

.navbar-premium .navbar-nav:last-child {
  flex-wrap: nowrap;
  gap: 0.25rem;
}

/* Responsive Design - COMPACT */
@media (max-width: 1399px) {
  .navbar-brand-premium {
    font-size: 1.5rem !important;
  }

  .navbar-brand-premium span {
    font-size: inherit;
  }

  .brand-logo {
    height: 36px;
    width: 36px;
  }

  .nav-link-premium {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1199px) {
  .navbar-brand-premium {
    font-size: 1.4rem !important;
  }

  .nav-link-premium {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }
}

@media (max-width: 991px) {

  /* Hide text on nav links, show only icons on tablet */
  .nav-link-premium span {
    display: none;
  }

  .nav-link-premium {
    padding: 0.5rem 0.6rem;
  }

  .nav-link-premium i {
    font-size: 1rem;
  }

  .navbar-brand-premium {
    font-size: 1.3rem !important;
  }

  .brand-logo {
    height: 32px;
    width: 32px;
  }
}

@media (max-width: 768px) {
  .navbar-brand-premium {
    font-size: 1.1rem !important;
    gap: 0.4rem;
  }

  .brand-icon {
    font-size: 0.9rem;
  }

  .brand-logo {
    height: 32px;
    width: 32px;
  }

  .offcanvas-title-premium {
    font-size: 1.4rem;
  }

  .navbar-premium {
    padding: 0.4rem 0 !important;
    min-height: 50px !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand-premium {
    font-size: 1rem !important;
    gap: 0.35rem;
  }

  .navbar-brand-premium span {
    font-size: inherit;
    line-height: 1;
  }

  .brand-icon {
    font-size: 0.85rem;
  }

  .brand-logo {
    height: 28px;
    width: 28px;
  }

  .offcanvas-premium {
    width: 280px !important;
  }

  .offcanvas-title-premium {
    font-size: 1.2rem;
  }

  .navbar-premium {
    padding: 0.35rem 0 !important;
    min-height: 48px !important;
  }
}

@media (max-width: 400px) {
  .navbar-brand-premium {
    font-size: 0.9rem !important;
    gap: 0.3rem;
  }

  .brand-logo {
    height: 26px;
    width: 26px;
  }

  .brand-icon {
    font-size: 0.8rem;
  }
}

/* DESKTOP ONLY - Extra compact for large screens */
@media (min-width: 1400px) {
  .navbar-premium {
    padding: 0.4rem 0 !important;
    min-height: 52px !important;
  }

  .navbar-brand-premium {
    font-size: 1.6rem !important;
  }

  .brand-icon {
    font-size: 1.4rem;
  }

  .brand-logo {
    height: 42px;
    width: 42px;
  }

  .nav-link-premium {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
  }

  .nav-link-premium span {
    display: inline;
  }
}

/* Container Spacing */
.navbar-premium .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .navbar-premium .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ============================================
   NOTIFICATION BELL STYLES (Public Header)
   ============================================ */

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Notification Dropdown */
.notification-dropdown {
  min-width: 380px;
  max-width: 400px;
  max-height: 500px;
  overflow-y: auto;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.notification-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.notification-header .badge {
  font-size: 11px;
  padding: 4px 8px;
}

/* Empty State */
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.notification-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* Notification Item */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.notification-item:hover {
  background: rgba(20, 184, 166, 0.05);
  transform: translateX(3px);
}

.notification-item.unread {
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.notification-icon.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.notification-icon.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.notification-icon.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.notification-icon.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-content h6 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-content p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* View All Link */
.view-all {
  padding: 12px 20px !important;
  font-weight: 600;
  color: #14b8a6 !important;
  background: rgba(20, 184, 166, 0.05);
  transition: all 0.3s ease;
}

.view-all:hover {
  background: rgba(20, 184, 166, 0.1);
  color: #10b981 !important;
}

/* Mobile Notification Badge */
.notification-badge-mobile {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
  .notification-dropdown {
    min-width: 320px;
    max-width: 100%;
  }

  .notification-item {
    padding: 10px 15px !important;
  }

  .notification-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .notification-dropdown {
    min-width: 280px;
  }

  .notification-content h6 {
    font-size: 13px;
  }

  .notification-content p {
    font-size: 12px;
  }
}