﻿/* =========================================================
   Dumpster Diva - Top Nav (overlay collapse on mobile)
   ========================================================= */

/* NAVBAR CONTAINER */
.diva-menu-style {
    background-color: #F5F5F5;
    border-top: 2px solid #ddd;
    border-bottom: 1px solid #ccc;
    line-height: 35px;
    padding: 0;
    margin: 0;
    height: 50px; /* fixed bar height */
}

    /* One-row flex layout that never wraps */
    .diva-menu-style .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap; /* <-- keeps toggler from dropping */
    }

/* LEFT PACK: Home + Admin grouped */
.navbar-leftpack {
    display: flex;
    align-items: center;
    gap: .75rem;
    white-space: nowrap; /* keep text on one line */
    min-width: 0;
}

/* BRAND (Home) */
.diva-menu-style .navbar-brand {
    color: #C73E9E;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
}

    .diva-menu-style .navbar-brand:hover {
        color: #9E3EC7;
    }

/* REGULAR NAV LINKS (inside the collapsible area) */
.diva-menu-style .nav-link {
    color: #333;
    margin-right: 1rem;
    transition: color .3s ease;
    white-space: nowrap;
    padding: 0;
    background-color: #F5F5F5;
}

    .diva-menu-style .nav-link:hover {
        color: #C73E9E;
    }

/* ADMIN DROPDOWN (lives outside the collapse) */
.diva-menu-style .dropdown-toggle {
    color: #C73E9E;
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px; /* alligns it vertically with the Home anchor */
}

    .diva-menu-style .dropdown-toggle:hover {
        color: #C73E9E;
    }

.diva-menu-style .dropdown-menu {
    border: 1px solid #ddd;
}

.diva-menu-style .dropdown-item {
    color: #333;
}

    .diva-menu-style .dropdown-item:hover {
        background-color: #F5F5F5;
        color: #C73E9E;
    }

    .diva-menu-style .dropdown-item.active {
        background-color: #C73E9E;
        color: #fff;
        font-weight: 600;
    }

/* COLLAPSE Z-INDEX (for overlay) */
.diva-menu-style .navbar-collapse {
    z-index: 1003;
}

/* TOGGLER (hamburger) — in-flow, right-aligned */
.diva-menu-style .navbar-toggler {
    border-color: #C73E9E;
    height: 40px;
    margin-top: 2px;
    margin-left: auto; /* push to far right */
    flex: 0 0 auto; /* don't shrink */
    position: static; /* keep in the flex row */
}

.diva-menu-style .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(199,62,158,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ICONS BASE (safe to keep) */
.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    top: -1px;
    background-size: cover;
}

/* DESKTOP: hide toggler as usual when >= md */
@media (min-width: 768px) {
    .diva-menu-style .navbar-toggler {
        display: none;
    }
}

/* -----------------------------
   MOBILE BEHAVIOR (overlay)
   ----------------------------- */
@media (max-width: 767.98px) {
    /* The bar itself remains fixed height; allow overlay to escape */
    .diva-menu-style {
        position: relative; /* anchor for the absolute overlay */
        overflow: visible;
    }

        /* When the collapse is open, take it out of flow and drop it under the bar */
        .diva-menu-style .navbar-collapse.show {
            position: absolute;
            top: 100%; /* just below the bar */
            left: 0;
            right: 0;
            background: #F5F5F5;
            border-bottom: 1px solid #ddd;
            box-shadow: 0 8px 16px rgba(0,0,0,.12);
            padding: .5rem 1rem;
            max-height: 70vh; /* scroll if long */
            overflow-y: auto;
        }

        /* Small spacing tweaks */
        .diva-menu-style .nav-link {
            margin-right: .5rem;
        }
}

/* Remove the visible border/outline around the hamburger */
.diva-menu-style .navbar-toggler {
    border: 0; /* kill the 1px border */
    box-shadow: none; /* kill default focus ring */
    background-color: transparent;
}

    .diva-menu-style .navbar-toggler:focus,
    .diva-menu-style .navbar-toggler:active {
        box-shadow: none !important;
        outline: none;
    }
    /* Optional: subtle hover target without a hard border */
    .diva-menu-style .navbar-toggler:hover {
        background-color: rgba(199,62,158,0.06);
        border-radius: 10px;
    }

/* If the dark line you see is the bar’s top border, remove it */
.diva-menu-style {
    border-top: 0; /* was 2px solid #ddd */
}

/* And if you see a line under the bar when the menu is open, soften/remove it */
@media (max-width: 767.98px) {
    .diva-menu-style .navbar-collapse.show {
        border-bottom: 0; /* was 1px solid #ddd */
        box-shadow: 0 8px 16px rgba(0,0,0,.08); /* keep a soft drop shadow (optional) */
    }
}
