/* Bootstrap 4.6 Menu Enhancement Styles */
/* Override flatMenu styles to work better with Bootstrap 4.6 */

.flatMenu .nav-header .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.flatMenu .nav-header .nav-links > li {
    margin: 0 5px;
}

.flatMenu .nav-search-bar {
    margin-left: auto;
}

.flatMenu .nav-search-bar input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    padding: 0.375rem 0.75rem;
}

.flatMenu .nav-search-bar button {
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 0.25rem 0.25rem 0;
    background: #f8f9fa;
    padding: 0.375rem 0.75rem;
}

.flatMenu .nav-search-bar button:hover {
    background: #e9ecef;
}

/* Make dropdown menu work with Bootstrap grid */
.flatMenu .drop-down.large {
    min-width: 800px;
    padding: 1rem;
}

/* Enhanced form styling for Bootstrap 4.6 compatibility */
.flatMenu input[type="search"] {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.flatMenu input[type="search"]:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.flatMenu button[type="submit"] {
    color: #495057;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.flatMenu button[type="submit"]:hover {
    color: #495057;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.flatMenu button[type="submit"]:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .flatMenu .nav-header .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flatMenu .nav-search-bar {
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
    }
    
    .flatMenu .drop-down.large {
        min-width: auto;
        position: static !important;
    }
    
    .flatMenu .nav-search-bar input,
    .flatMenu .nav-search-bar button {
        width: 100%;
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .flatMenu .nav-search-bar button {
        border: 1px solid #ced4da;
    }
}

/* Ensure proper spacing and alignment */
@media (min-width: 992px) {
    .flatMenu .nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .flatMenu .nav-links {
        flex: 1;
        justify-content: center;
        margin: 0 2rem;
    }
}
