.app-header,
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--dark-bg);
    padding: 15px 40px;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-header .header-content,
.desktop-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.app-header .header-left,
.desktop-header .header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-img,
.desktop-header .logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.logo-line,
.logo-line-desktop {
    display: none;
}

.profile-dropdown {
    position: relative;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-dropdown .dropdown-menu,
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    left: auto;
    background-color: #34495E;
    border-radius: 10px;
    min-width: 200px;
    max-width: calc(100vw - 20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2000;
    border: none;
    padding: 8px 0;
}

.profile-dropdown .dropdown-menu.show,
.dropdown-menu.show {
    display: block !important;
}

.profile-dropdown .dropdown-item,
.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
    border: none;
}

.profile-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:active,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.profile-dropdown .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    outline: none;
}

.profile-dropdown .dropdown-item i,
.dropdown-menu .dropdown-item i {
    font-size: 16px;
    width: 20px;
}

.profile-dropdown .dropdown-item span,
.dropdown-menu .dropdown-item span {
    font-size: 14px;
}

.profile-dropdown .dropdown-divider,
.dropdown-menu .dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    border: none;
}

@media (max-width: 768px) {
    .app-header {
        padding: 15px 20px;
    }

    .logo-img {
        height: 40px;
        margin-bottom: 5px;
    }

    .profile-pic {
        width: 40px;
        height: 40px;
    }

    .profile-dropdown .dropdown-menu {
        top: 50px;
    }
}

