/* === Navbar General === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    font-family: rgba(234, 235, 238, 0.95);
    background-color: #000 !important;
    border-bottom: 1px solid rgba(79, 70, 229, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
  

/* === Navbar Link Styles === */
.navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease;
  font-weight: 600;
  text-decoration: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  background-color: rgba(79, 70, 229, 0.15);
  color: #fff !important;
}

.navbar .navbar-nav .nav-link.active {
  background-color: rgba(79, 70, 229, 0.25);
  color: #fff !important;
}

/* Navbar content */
#navbarSupportedContent {
    flex-grow: 1;
}

.navbar .btn {
    padding: 2px 6px; /* smaller padding */
    font-size: 0.85rem; /* slightly smaller font */
}

.navbar-nav .nav-item {
    margin-bottom: 5px;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap; /* ❌ No wrapping on large screens */
}

/* Smaller padding for nav buttons */
.navbar .btn {
    padding: 2px 8px;
    font-size: 0.85rem;
}

/* Prevent wrapping of right widgets */
.navbar-widgets {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 700px; /* ✅ LIMIT the right side */
    overflow: hidden;
    white-space: nowrap; /* ✅ Force one line */
    
}

/* Adjust widget area */
.navbar-mini-widgets {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap; /* no wrap on laptop/desktop */
}

/* Responsive stacking for small screens */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-widgets {
        justify-content: center;
        max-width: 100%;
    }
    .navbar-mini-widgets {
        flex-wrap: wrap;
    }
}

/* Hide some widgets if super small */
@media (max-width: 500px) {
    .calendar-widget,
    .clock-widget,
    .weather-text {
        display: none;
    }
}



/* === Right Widgets (Calendar, Clock, Weather) === */
.calendar-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #36383a;
    width: 36px;
    height: 42px;
    border-radius: 5px;
}

#mini-calendar-day {
    font-size: 0.6rem;
    font-weight: bold;
}

#mini-calendar-date {
    font-size: 0.9rem;
    font-weight: bold;
}

.clock-widget {
    display: flex;
    align-items: center;
    font-family: monospace;
    font-size: 0.8rem;
    background-color: rgba(219, 126, 126, 0.4);
    padding: 4px 6px;
    border-radius: 5px;
    color: white;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
}

/* Weather text */
.weather-text {
    font-size: 0.8rem;
    padding: 2px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px; /* ✅ Limit width nicely */
}



/* === Footer (Matches Navbar) === */
.site-footer {
  background-color: rgba(4, 4, 4, 0.95);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Other */
#connectionStatus {
    transition: background-color 0.3s ease, color 0.3s ease;
}
.compact-navbar .navbar-nav .nav-item {
    margin-bottom: 2px;
}

.compact-navbar .navbar .btn {
    padding: 1px 5px;
    font-size: 0.75rem;
}

.compact-navbar .navbar-widgets {
    max-width: 300px;
}

.compact-navbar .calendar-widget {
    width: 30px;
    height: 36px;
}

.compact-navbar .clock-widget {
    font-size: 0.7rem;
}
.my-new-sale-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

/* Staff New Sale Button */
.navbar .my-new-sale-btn {
  background-color: #4f46e5;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
  border: none;
  transition: all 0.2s ease;
}

.navbar .my-new-sale-btn:hover {
  background-color: #4338ca;
}

.help-panel {
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.35s ease;
}

.help-panel.collapse {
    max-height: 0;
}

.help-panel.show {
    max-height: 700px;
    padding: 20px 0;
}
.help-highlight {
    outline: 3px solid #0d6efd;
    box-shadow: 0 0 10px rgba(13,110,253,.6);
    border-radius: 6px;
    transition: all .2s ease;
}
.help-scroll {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}
.help-scroll::-webkit-scrollbar {
    width: 8px;
}

.help-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.help-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}
#guide-viewer h5 {
    position: sticky;
    top: 0;
    background: #e9f6fb;
    padding: 8px;
    z-index: 10;
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    filter: invert(1); /* makes icon white */
}
/* 🔒 HARD CONSTRAINT WRAPPER */
.navbar-banner-wrapper {
    height: 60px;              /* 🔥 locks height to navbar */
    max-width: 200px;          /* 🔥 prevents takeover */
    overflow: hidden;          /* 🔥 crops excess */
    display: flex;
    align-items: center;
}

/* 🖼️ IMAGE CONTROL */
.navbar-banner-img {
    height: 100%;
    width: 100%;
    object-fit: cover;         /* 🔥 crops nicely instead of stretching */
    display: block;
}
/* 🔥 CENTER THE BANNER IN NAVBAR */
/* 🔥 CENTER THE BANNER IN NAVBAR */
.navbar-banner-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
    height: 60px;
    max-width: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none; /* prevents blocking clicks */
}

/* Image sizing */
.navbar-banner-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Parent must allow overflow */
.navbar {
    overflow: visible !important;
}

/* Wrapper */
.nav-products {
    position: relative;
}

/* Hidden by default */
.products-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100vw;              /* 🔥 full width */
    transform: translateX(-20%); /* adjust if navbar is centered */

    background: #000;
    border-top: 1px solid rgba(79, 70, 229, 0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.25s ease;
    z-index: 1050;
}

/* Show on hover */
.nav-products:hover .products-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent flicker gap */
.products-mega-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}