/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle .fa-caret-down {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown.show .fa-caret-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 180px;
    background-color: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid #333;
    list-style: none; /* Add this line */
}

.dropdown.show .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #222;
    color: #09a8fd;
}

.dropdown-item.active {
    background-color: #09a8fd;
    color: #fff;
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #222;
        border: none;
        padding-left: 0; /* Remove the indentation */
    }
    
    .dropdown-toggle .fa-caret-down {
        margin-left: auto;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-left: none; /* Remove any potential left borders */
    }
}

/* Dropdown hover styles */
header .dropdown:hover .dropdown-menu {
    display: block;
}

header .dropdown-menu {
    margin-top: 0;
}

.user-avatar-mini img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.username-display {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
*/

.dropdown-header {
    background-color: #6441A4;
    color: white;
    padding: 8px 16px;
}

.dropdown-divider {
    border-top: 1px solid #444;
    margin: 4px 0;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Position des Profil-Menüs ganz rechts */
.nav-menu .profile-nav-item {
    margin-left: auto;
}