.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Base search box */
.search-box {
    max-width: 850px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10000;
}
.login-btn {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; /* clean, modern */
    font-weight: 500; /* medium weight for readability */
    color: #212529 !important; /* dark gray text */
    background-color: #f8f9fa !important; /* light gray background */
    border: 2px solid #6c757d !important; /* dark gray border */
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover with !important */
.login-btn:hover {
    background-color: #e9ecef !important; /* slightly darker */
    color: #212529 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Optional: SVG inside button */
.login-btn svg {
    width: 20px;
    height: 20px;
    fill: #212529; /* dark icon color */
}

/* Space between this button and nearby images */
.login-btn + img, 
img + .login-btn {
    margin-left: 12px; /* adjust as needed */
}

/* Input */
.search-input {
    flex: 1;
    border-radius: 50vw !important;
    padding-inline-start: 35px;
    background-color: #a2b690 !important;
    box-shadow: 5px 10px 18px #aaaaaa !important;
    color: #212529 !important;
    border: 0;
    transition: font-size 0.35s ease,
                padding 0.35s ease,
                height 0.35s ease;
    z-index: inherit;
}

/* Search icon */
.search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    transition: left 0.35s ease, font-size 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 20000;
}

/* Navbar styling */
nav {
    border: 0 !important;
    border-bottom: #fff 0px !important;
    background-color: #fff;
    position: sticky !important;
    top: 0;             /* distance from top */
    z-index: 1000;      /* ensure it stays on top of other content */
}

nav * {
    color: #f1f1f1 !important;
}

.profile {
    cursor: pointer;
}

/* Logo */
.logo *{
    width: 50px;
    height: 50px;
    margin: 0 !important;
}
.logo-img {
    cursor: pointer;
}

.logo-img-wrapper {
    width: 50px;       /* size of circle */
    height: 50px;
    border-radius: 50%; /* circle */
    overflow: hidden;   /* crops the image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 60px;        /* bigger than container */
    height: 60px;
    object-fit: cover;   /* crop nicely */
    transform: scale(1.1); /* optional extra zoom */
}

/* Sidebar */
.offcanvas-end {
    border-radius: 20px 0px 0px 20px !important;
}

.offcanvas-start {
    border-radius: 0px 20px 20px 0px !important;
}

/* Overlay */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    z-index: 1040;
}
#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Floating state */
/* Floating state */
.search-box--float {
    position: fixed !important;
    z-index: 1060;
    top: var(--y, 0px);
    left: var(--x, 0px);
    /* left: 50%;                   horizontal center */
    /* transform: translateX(-50%);  adjust for width */
    width: var(--w, auto);
    /* background: white; */
    border-radius: 50vw;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transition: top 0.35s cubic-bezier(.2,.8,.2,1),
                width 0.35s cubic-bezier(.2,.8,.2,1),
                height 0.35s ease;
}

/* Expanded */
.search-box--expanded {
    top: 20% !important;
    width: 80% !important;
    height: 70px !important;
}

/* Expanded input */
.search-box--expanded .search-input {
    font-size: 1.4rem;
    padding-inline-start: 70px;
    height: 100%;
}

/* Expanded icon */
.search-box--expanded .search-icon {
    left: 30px;
    font-size: 1.5rem;
    transform: translateY(-50%);
}

.logo-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
}

.logo-btn:focus {
  outline: none;
  box-shadow: none;
}

.logo-img-wrapper {
  display: inline-block;
}

/* Sidebar nav items */
.offcanvas .navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas .nav-item {
  margin: 0.2rem 0;
}

.offcanvas .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

.offcanvas .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.offcanvas .nav-link:hover {
  background-color: #f0f0f0;
  color: #000;
}

.offcanvas .nav-link.active {
  background-color: #a2b690; /* Bootstrap primary */
  color: white;
}

.offcanvas .nav-link.active i {
  color: white;
}

.offcanvas .nav-link i {
  font-size: 1.4rem;
}

@media (max-width: 1350px) {
    .search-box {max-width: 950px;}
}

@media (max-width: 1250px) {
    .search-box {max-width: 750px;}
}

@media (max-width: 1200px) {
    .search-box {max-width: 450px;}
}

@media (max-width: 768px) {
    .logo-text { display: none; }
    .search-box {max-width: 250px;}
    .offcanvas-end, .offcanvas-start {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .search-box { max-width: 160px; }
}