/* Header Navigation Styles */
.navbar {
    padding: 0;
    background: linear-gradient(to right, #1a1a1a, #343a40) !important;
    position: relative;
    z-index: 1030;
}

.navbar .container {
    position: relative;
    padding: 0 15px;
}

.navbar-brand {
    padding: 10px 0;
    margin-right: 20px;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* Navigation Items */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    padding: 15px 12px !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.nav-link:hover i {
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    margin-top: 0;
    border: none;
    background: #343a40;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    padding: 8px;
    min-width: 220px;
}

.dropdown-item {
    padding: 8px 15px;
    color: rgba(255,255,255,0.9) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    color: #fff !important;
}

/* WhatsApp Button */
.navbar-actions {
    margin-left: 15px;
    white-space: nowrap;
}

.btn-success {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #343a40;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px !important;
        border-radius: 4px;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static !important;
        background: rgba(0,0,0,0.2) !important;
        box-shadow: none;
        padding: 0;
        margin: 5px 0;
        transform: none !important;
    }

    .dropdown-item {
        padding: 10px 15px;
    }

    .navbar-actions {
        margin: 15px 0 0 0;
        text-align: center;
        width: 100%;
    }

    .btn-success {
        width: 100%;
        justify-content: center;
    }
}

/* Active Menu Item */
.nav-item.active .nav-link {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

/* Container width optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Prevent text wrapping and overflow */
.navbar-nav,
.nav-item,
.nav-link,
.dropdown-menu,
.dropdown-item {
    overflow: visible;
}

.navbar .container {
    overflow: visible;
}

/* Ensure dropdown menu is always on top */
.dropdown-menu {
    z-index: 1031;
}

/* Fix for Safari */
@supports (-webkit-overflow-scrolling: touch) {
    .nav-link {
        padding: 15px 10px !important;
    }
    
    .dropdown-item {
        padding: 8px 12px;
    }
}

/* Header top bar */
.header-top {
    background: #f8f9fa;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.header-top-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-top-info a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-top-info a:hover {
    color: #0d6efd;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-social a {
    color: #6c757d;
    transition: all 0.2s ease;
}

.header-social a:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

/* Mega Menu Optimization */
.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    padding: 1rem;
    left: 0;
    right: 0;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mega-menu-column {
    padding: 1rem;
}

.mega-menu-column h6 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column li {
    margin-bottom: 0.5rem;
}

.mega-menu-column a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.mega-menu-column a:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

/* Search Form Optimization */
.navbar-search {
    position: relative;
    margin-left: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    width: 250px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.search-button {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #0d6efd;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #0d6efd;
    border-radius: 2px;
} 