/* ============================================
   DROPDOWN NAVIGATION STYLES
   ============================================ */

/* Dropdown Base */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle .arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown-menu.dropdown-large {
    min-width: 500px;
    /* Reduced from 600px */
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Grid Layout */
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

/* 4-column grid for renewals */
.dropdown-grid-4 {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 15px;
    align-items: start;
}

.dropdown-column h4 {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    width: 1px;
    background-color: var(--border-color);
    height: 100%;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    transform: translateX(5px);
}

.dropdown-item .item-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.dropdown-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 2px;
    font-size: 0.95em;
}

.dropdown-item p {
    font-size: 0.8em;
    color: var(--text-light);
    margin: 0;
}

/* 2x2 Grid for Renewals (Modern Style) */
.dropdown-grid-2x2-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Gaps managed by padding and borders */
    min-width: 500px;
}

.dropdown-grid-2x2-modern .dropdown-column {
    padding: 15px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-grid-2x2-modern .dropdown-column:nth-child(2n) {
    border-right: none;
}

.dropdown-grid-2x2-modern .dropdown-column:nth-child(n+3) {
    border-bottom: none;
}

.dropdown-item-card {
    display: none;
    /* Deprecated in favor of modern style */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        padding: 10px 0;
        margin-top: 0;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-divider {
        display: none;
    }

    .dropdown-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .nav-item.dropdown .dropdown-menu {
        display: none;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
}