/* Main navbar container with dark theme and blur effect */
.ac-navbar {
  background: #0b1220;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);

  position: sticky;
  top: 0;
  z-index: 9999;

  animation: navbarSlideIn 0.6s ease-out;
}

/* Slide in animation for navbar appearance */
@keyframes navbarSlideIn {
  from {
    transform: translateY(-100%);  /* Start above screen */
    opacity: 0;  /* Fade in */
  }
  to {
    transform: translateY(0);  /* End at normal position */
    opacity: 1;  /* Fully visible */
  }
}

/* Gradient overlay for visual depth */
.ac-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 140, 26, 0.03),  /* Orange accent */
    transparent
  );
  pointer-events: none;  /* Don't block interactions */
}

/* Navbar spacing */
.ac-navbar .navbar {
  padding: 18px 0;
  align-items: center;
}

/* Brand container */
.ac-brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
}

/* Brand logo - Cool animations */
.ac-brand__logo {
  width: 75px;
  height: 75px;
  object-fit: contain;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logoFloat 3s ease-in-out infinite;
}

/* Logo floating animation */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.ac-brand:hover .ac-brand__logo {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 20px rgba(255,140,26,0.3);
}

/* Brand text */
.ac-brand__text {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

/* Brand hover */
.ac-brand:hover .ac-brand__text {
  color: #ff8c1a;
}

/* Navbar links - Modern styling */
.ac-navbar__links .ac-navlink {
  color: rgba(255,255,255,0.80);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ac-navbar__links .ac-navlink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

/* Link hover */
.ac-navbar__links .ac-navlink:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ac-navbar__links .ac-navlink:hover::before {
  left: 100%;
}

/* Active link */
.ac-navbar__links .ac-navlink.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(255,140,26,0.2);
}

/* Button base */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 12px;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Button focus */
.ac-btn:focus {
  outline: none;
}

/* Register button - Cool animations */
.ac-btn-solid {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #2c3e50;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.ac-btn-solid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,140,26,0.3), transparent);
  transition: left 0.6s ease;
}

/* Register hover */
.ac-btn-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 28px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  color: #ff8c1a;
}

.ac-btn-solid:hover::before {
  left: 100%;
}

/* Login button - Cool animations */
.ac-btn-ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.ac-btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

/* Login hover */
.ac-btn-ghost:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ac-btn-ghost:hover::before {
  left: 100%;
}

/* Emergency button */
.ac-btn-emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #4d4d4d;
  background: linear-gradient(135deg, #ff4d4d, #ff7a18);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.35);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Emergency hover */
.ac-btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 77, 77, 0.5);
  color: #fff;
}

/* Emergency active */
.ac-btn-emergency:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.35);
}

/* Emergency glow effect */
.ac-btn-emergency::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255,59,59,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Emergency glow hover */
.ac-btn-emergency:hover::after {
  opacity: 1;
}

/* Small emergency button */
.ac-btn-emergency--sm {
  padding: 8px 12px;
  border-radius: 11px;
  font-weight: 900;
}

/* Navbar toggler */
.ac-navbar__toggler {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 12px;
}

/* Toggler focus */
.ac-navbar__toggler:focus {
  box-shadow: none;
}

/* Toggler icon */
.ac-navbar__togglerIcon {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

/* Toggler lines */
.ac-navbar__togglerIcon::before,
.ac-navbar__togglerIcon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Top line */
.ac-navbar__togglerIcon::before { 
  top: -7px; 
}

/* Bottom line */
.ac-navbar__togglerIcon::after { 
  top: 7px; 
}

/* Custom Dropdown Styles */
.ac-dropdown {
  position: relative;
}

/* Dropdown toggle button */
.ac-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  min-width: 200px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
  color: #fff;
  font-weight: 600;
}

.ac-dropdown__toggle:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
  color: #fff;
}

.ac-dropdown__toggle:focus {
  box-shadow: 0 0 0 2px rgba(255,140,26,0.3);
}

.ac-dropdown__toggle::after {
  display: none;
}

/* User info in toggle */
.ac-dropdown__user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ac-dropdown__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c1a, #ff6b1a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,140,26,0.3);
}

.ac-dropdown__avatarText {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.ac-dropdown__userInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.ac-dropdown__userName {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ac-dropdown__userRole {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 400;
}

.ac-dropdown__arrow {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ac-dropdown__arrow::before,
.ac-dropdown__arrow::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.ac-dropdown__arrow::before {
  transform: translate(-50%, -50%) rotate(45deg);
  margin-left: -2px;
}

.ac-dropdown__arrow::after {
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-left: 2px;
}

.ac-dropdown.show .ac-dropdown__arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.ac-dropdown__menu {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  padding: 8px;
  margin-top: 8px;
  min-width: 280px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown header */
.ac-dropdown__header {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 8px;
}

.ac-dropdown__headerInfo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-dropdown__headerAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c1a, #ff6b1a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(255,140,26,0.4);
}

.ac-dropdown__headerAvatarText {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.ac-dropdown__headerText {
  flex: 1;
  min-width: 0;
}

.ac-dropdown__headerName {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-dropdown__headerEmail {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown divider */
.ac-dropdown__divider {
  border-color: rgba(255,255,255,0.08);
  margin: 8px 0;
  opacity: 0.5;
}

/* Dropdown items */
.ac-dropdown__item {
  margin: 2px 0;
}

.ac-dropdown__item--danger {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ac-dropdown__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
}

.ac-dropdown__link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(2px);
}

.ac-dropdown__link:focus {
  outline: none;
  background: rgba(255,140,26,0.1);
  color: #ff8c1a;
}

.ac-dropdown__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ac-dropdown__text {
  flex: 1;
  white-space: nowrap;
}

.ac-dropdown__chevron {
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ac-dropdown__link:hover .ac-dropdown__chevron {
  transform: translateX(2px);
  color: rgba(255,255,255,0.6);
}

/* Logout button */
.ac-dropdown__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 107, 107, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.ac-dropdown__logout:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  transform: translateX(2px);
}

.ac-dropdown__logout:focus {
  outline: none;
  background: rgba(255, 107, 107, 0.15);
}

.ac-dropdown__logout .ac-dropdown__icon {
  color: rgba(255, 107, 107, 0.8);
}

.ac-dropdown__logout:hover .ac-dropdown__icon {
  color: #ff6b6b;
}

/* Enhanced Dropdown Styles */
.dropdown-toggle .rounded-circle {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff8c1a, #ff6b1a);
  flex-shrink: 0;
}

.dropdown-toggle .rounded-circle span {
  font-size: 12px !important;
}

.dropdown-menu {
  background: #0b1220 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  padding: 8px !important;
  min-width: 250px !important;
}

.dropdown-menu .px-3.py-2.mb-2 {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 8px;
}

.dropdown-menu .px-3.py-2.mb-2 .rounded-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff8c1a, #ff6b1a);
  flex-shrink: 0;
}

.dropdown-menu .px-3.py-2.mb-2 .rounded-circle span {
  font-size: 14px !important;
}

.dropdown-menu .dropdown-item {
  color: rgba(255,255,255,0.8) !important;
  padding: 10px 16px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  transform: translateX(2px);
}

.dropdown-menu .dropdown-item span:first-child {
  font-size: 16px;
}

.dropdown-menu .dropdown-item span:last-child {
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s ease;
}

.dropdown-menu .dropdown-item:hover span:last-child {
  transform: translateX(2px);
  color: rgba(255,255,255,0.6);
}

.dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,0.1) !important;
}

/* Button hover effects */
.ac-btn-solid:hover,
.ac-btn-ghost:hover {
  transform: translateY(-3px) scale(1.02);
}



/* Mobile menu */
@media (max-width: 991.98px) {
  .ac-navbar .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(44, 62, 80, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
  }
}


/* Phone navbar design */
@media (max-width: 991.98px) {

  .ac-navbar .navbar {
    padding: 10px 0;
  }

  .ac-brand {
    gap: 8px;
  }

  .ac-brand__logo {
    width: 50px;
    height: 50px;
  }

  .ac-brand__text {
    font-size: 0.95rem;
    max-width: 120px;
    line-height: 1.15;
  }

  .ac-navbar__toggler {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ac-btn-emergency--sm {
    font-size: 0.78rem;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .d-lg-none .btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    font-weight: 800;
    border-radius: 12px;
    padding: 8px 10px;
  }

  .ac-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(11,18,32,0.98));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    max-height: calc(100vh - 95px);
    overflow-y: auto;
  }

  .ac-navbar__links {
    gap: 8px;
    margin-bottom: 14px;
  }

  .ac-navbar__links .ac-navlink {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
  }

  .ac-navbar__links .ac-navlink:hover,
  .ac-navbar__links .ac-navlink.active {
    background: rgba(255,140,26,0.16);
    border-color: rgba(255,140,26,0.32);
  }

  .ac-mobile-account {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: grid;
    gap: 10px;
  }

  .ac-mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background:
      radial-gradient(circle at top left, rgba(255,140,26,0.22), transparent 45%),
      rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
  }

  .ac-mobile-user-name {
    color: #fff;
    font-weight: 900;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .ac-mobile-user-role {
    color: rgba(255,255,255,0.62);
    font-size: 0.78rem;
    margin-top: 2px;
  }

  .ac-mobile-action {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 15px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    transition: 0.2s ease;
  }

  .ac-mobile-action:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
    transform: translateY(-1px);
  }

  .ac-mobile-action span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
  }

  .ac-mobile-action strong {
    font-size: 0.92rem;
    font-weight: 800;
  }

  .ac-mobile-action--solid {
    color: #111827;
    background: linear-gradient(135deg, #fff, #f4f6f8);
    border-color: rgba(255,255,255,0.35);
  }

  .ac-mobile-action--solid:hover {
    color: #111827;
  }

  .ac-mobile-logout {
    border: none;
    color: #ff8b8b;
    background: rgba(255, 77, 77, 0.10);
    font-family: inherit;
    text-align: left;
  }

  .ac-mobile-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 77, 77, 0.16);
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .ac-brand__logo {
    width: 44px;
    height: 44px;
  }

  .ac-brand__text {
    font-size: 0.82rem;
    max-width: 95px;
  }

  .ac-btn-emergency--sm {
    font-size: 0.7rem;
    padding: 8px 8px;
  }

  .d-lg-none .btn-outline-primary {
    font-size: 0.75rem;
    padding: 7px 8px;
  }
}