/* Reset */
.h-menu, .h-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Horizontal Menu Container */
.h-menu {
    background: #2c3e50;
    display: flex;
    gap: 10px;
    padding: 0 15px;
}

/* Top-level Menu Items */
.h-menu > li {
    position: relative;
}

.h-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.h-menu > li > a:hover {
    background: #34495e;
    border-radius: 4px;
}

/* Dropdown Menu */
.d-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
	opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

/* Show dropdown on hover */
.h-menu > li:hover > .d-menu {
    display: block;
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

/* Dropdown items */
.d-menu li a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.25s;
}

.d-menu li a:hover {
    background: #f2f2f2;
}

/* Subtle hover for li (when using onclick on li) */
.d-menu li:hover {
    cursor: pointer;
}

/*Above d-menu only works in combination with h-menu. Independent dropdown menu is below.*/
/* Dropdown menu */
/*Syntax - Dropdown Menu
<div class="dropdown">
    <ul class="dropdown-menu">
        <li><a href="#">All Items</a></li>
        <li><a href="#">Active</a></li>
        <li><a href="#">Archived</a></li>
    </ul>
</div>
*/

/* Dropdown wrapper */
.dropdown {
    position: relative;
    display: inline-block;
    font-size: 14px;
	padding-bottom:10px;
}

/* Auto-generated Filter button */
.dropdown::before {
    content: "Filter ▾";
    display: inline-block;
    padding: 10px 14px;   
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: 0px;

    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);

    list-style: none;
    padding: 6px 0;

    display: none;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

/* Show dropdown when hovering the "button" */
.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown items */
.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
}
