.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.home-icon, .user-menu-container {
    flex: 0 0 auto;
}

.user-menu-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-icon-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.avatar-display {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

/* Admin Badge */
.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.admin-badge i {
    margin: 0;
}

/* Unified header logo - used across all pages */
.header-logo {
    max-width: 50%;
}

/* Legacy class for backwards compatibility */
.daily-logo-header {
    max-width: 50%;
}

/* Multiplayer-specific sizing for hornswoggled logo */
#app .daily-logo-header {
    max-width: 40%;
    max-height: 60px;
}


@media (max-width: 768px) {
    .header-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "home logo user";
        align-items: center;
        padding: 10px;
        gap: 10px;
    }

    .home-icon {
        grid-area: home;
        justify-self: start;
    }

    .user-menu-container {
        grid-area: user;
        justify-self: end;
    }

    .header-logo,
    .daily-logo-header {
        grid-area: logo;
        max-height: 80px;
        max-width: 70%;
        margin: 0 auto;
    }

    /* Multiplayer mobile sizing */
    #app .daily-logo-header {
        max-width: 60%;
        max-height: 70px;
    }

    .home-icon-image,  .avatar-display {
        width: 50px;
        height: 50px;
    }

    .admin-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 5px;
    }

    .home-icon-image, .avatar-display {
        width: 32px;
        height: 32px;
    }

    .header-logo,
    .daily-logo-header {
        max-height: 70px;
    }

    .home-icon, .user-menu-container {
        flex: 0 0 auto;
    }

    .admin-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .user-menu-container {
        gap: 8px;
    }
}

.login-icon-image {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .login-icon-image {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .login-icon-image {
        max-width: 40px;
    }
}


.box-hr {
    display: flex;
    width: 100%;
    height: 5px;
    margin: 0 0 30px 0;
}

.box-hr-sm {
    height: 5px;
    margin: 0;
    flex-grow: 1;
    transition: all .8s ease-in-out;
    cursor: pointer;
}

.box-hr-sm:hover {
       flex-grow: 12;
   }

.box-hr-middle-color {
    background-color: var(--primary-color);
}

.box-hr-side-color {
    background-color: var(--accent-color);
}

.hr-header {
    width: 100%;
    height: 4px;
    margin: 10px 0 20px 0;
    background-color: black
}

/* User Menu Dropdown Styles */
.user-menu-wrapper {
    position: relative;
}

.avatar-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.avatar-button:hover {
    opacity: 0.8;
}

.avatar-button:focus {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.user-dropdown-name {
    font-weight: 600;
    color: #1f3038;
    font-size: 0.95rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1f3038;
}

.user-dropdown-item:focus {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: -2px;
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

.user-dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Login icon styling */
.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #667eea;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #5568d3;
}

.login-link:focus {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .user-dropdown-menu {
        min-width: 180px;
    }

    .user-dropdown-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}