/* Header styles */
header {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
}

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

.user-greeting {
    display: none;
}

.search-and-add {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 10px;
        }

.profile-btn, .lang-toggle {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1rem;
    cursor: pointer;
}

.profile-btn i {
    font-size: 1.5rem;
}

.login-btn {
    color: #3182ce;
    text-decoration: none;
}

.login-btn:hover {
    color: #2c5282;
}

.company-info {
        display: flex;
        flex-wrap: wrap;
    }

.header-bottom {
    justify-content: space-between;
    align-items: center;
/*        display: flex;
    padding: 1rem 0; */
}

.search-form {
    flex-grow: 1;
/*    margin-right: 1rem; */
}

.search-bar {
    width: 75%;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

.search-bar-single {
    width: 89%;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

.add-company-btn {
    background-color: #3182ce;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 0;
    height: 32px;
}

.add-company-btn:hover {
    background-color: #2c5282;
}

.add-company-btn .desktop-text {
    display: none;
}

.main-nav {
    background-color: #fff;
    overflow-y: hidden;
    overflow-x: hidden;
    overflow: hidden;
}
.nav-list {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}
.nav-link {
    display: block;
    padding: 0 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #2d3748;
}
.reports-menu {
    position: relative;
}
.menu-item {
    position: relative;
    padding: 0 1rem;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 500;
}
.reports-menu:hover .submenu {
    display: block;
}
.submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #4a5568;
    text-decoration: none;
}
.submenu-item:hover {
    background-color: #f7fafc;
}

/* Ensure submenus are visible on mobile devices */
@media (max-width: 767px) {
    .nav-list {
        flex-direction: column;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f7fafc;
    }

    .submenu .submenu {
        margin-left: 1rem;
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .user-greeting {
        display: inline-block;
    }

    .add-company-btn .desktop-text {
        display: inline;
    }

    .add-company-btn .mobile-text {
        display: none;
    }
}

@media (max-width: 767px) {
    .header-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        width: 229px;
        height: 34px;
    }
    .search-bar-single {
    width: 255px;
    height: 34px;
    }
    
    .nav-list {
        flex-direction: column;
    }

.nav-list {
    display: -webkit-box;
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

    .search-and-add {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        margin-bottom: 1rem;
        margin-right: 0px;
    }

    .add-company-btn {
        align-self: flex-start;
    }
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
    .header-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        width: 570px;
    }

    .search-and-add {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        margin-bottom: 1rem;
        margin-right: 0px;
    }

    .add-company-btn {
        align-self: flex-start;
    }
}