/* Top Navigation Fixes */
#top {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

#top .container {
    max-width: 100%;
    padding: 0 15px;
}

#top .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

#top .col-4,
#top .col {
    padding: 0;
    flex: 1;
}

/* Currency Dropdown */
#top #form-currency {
    margin: 0;
    display: inline-block;
}

#top .dropdown > a {
    color: #495057 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

#top .dropdown > a:hover {
    background-color: #e9ecef;
}

#top .dropdown-menu {
    min-width: 120px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    padding: 5px 0;
}

#top .dropdown-item {
    padding: 6px 15px;
    color: #212529 !important;
    font-size: 0.875rem;
}

#top .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--tifanti-primary) !important;
}

/* Right Side Navigation */
#top .text-end ul.list-inline {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

#top .list-inline-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

#top .list-inline-item a {
    color: #495057 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

#top .list-inline-item a i {
    font-size: 1rem;
}

#top .list-inline-item a:hover {
    background-color: #e9ecef;
    color: var(--tifanti-primary) !important;
}

/* Dropdown in navigation */
#top .dropdown .dropdown-menu {
    right: 0;
    left: auto;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #top {
        display: none !important;
    }
}

/* Fix for currency selector alignment */
#form-currency .dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

/* Ensure consistent spacing */
#top .dropdown-toggle::after {
    margin-left: 5px;
}
