/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(31, 106, 58, 0.08);
    backdrop-filter: blur(6px);
}

.dropdown-item {
    padding: 0.72rem 1.1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 10px;
    margin: 0.1rem 0.4rem;
    width: auto;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(31, 106, 58, 0.1);
    border-left: 3px solid #1F6A3A;
    padding-left: calc(1.1rem - 3px);
    color: #1F6A3A;
}

.dropend .dropdown-toggle::after {
    margin-left: auto;
    vertical-align: middle;
    border-left-color: #1F6A3A;
}

.dropend .dropdown-menu {
    margin-top: 0;
    margin-left: 0.4rem;
}

.dropdown-item:focus {
    background: rgba(31, 106, 58, 0.08);
    color: #1F6A3A;
}

.dropdown-item:active {
    background: #1F6A3A;
    color: white;
}

/* Remove dropdown icon - hover only */
.nav-link.dropdown-toggle::after {
    display: none !important;
}

/* Show first-level dropdown on hover */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Ensure dropdown stays visible when hovering over it */
.dropdown-menu:hover {
    display: block;
}

/* Nested submenu behavior (Farm Inputs -> Fertilisers) */
.dropend {
    position: relative;
}

.dropend:hover > .dropdown-menu,
.dropend:focus-within > .dropdown-menu {
    display: block;
    top: 0;
    left: 100%;
}

/* Dropdown divider */
.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}
