  ﻿.avatar-icon {
    display: block;
}

.guest-text {
    font-style: normal;
}

/* Ensure the avatar container centers any content */
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Dropdown Styles - Icon Focused Design */
.profile-container {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 1px solid #d3d3d373;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 1.375rem;
    overflow: visible;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 37px;
    background: linear-gradient(145deg, #60688b 30%, #d3d3d3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    margin: -3px 0 -3px -3px;
    border-radius: 50%;
    box-shadow: 4px 0px 8px rgb(96 104 139 / 20%);
    z-index: 1;
}

.profile-button:hover .profile-avatar {
    border-color: #c7cdd5 !important;
    background-color: #ced3db !important;
}

.avatar-initials {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info {
    display: flex;
    align-items: center;
    padding: 0 5px 0 10px;
    gap: 10px;
    height: 100%;
}

.profile-email {
    font-size: 0.9125rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.k-picker-solid:hover, .k-picker-solid.k-hover {
    border-color: #c7cdd5;
    background-color: #ced3db;
}

.dropdown-arrow {
    transition: all 0.2s ease;
    color: #adb5bd;
    flex-shrink: 0;
    padding-right: 2px;
}

    .dropdown-arrow.open {
        transform: rotate(180deg);
        color: #495057;
    }

/* Dropdown Menu Styles */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 280px;
    width: max-content;
    max-width: 330px; 
    z-index: 2000;
    animation: dropdownSlideIn 0.2s ease-out;
}

.dropdown-backdrop {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    inset: 0;
}

.dropdown-content {
    position: relative;
    padding: 0 0 .75rem 0;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    justify-items: center;
    display: flow;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: .7rem;
    background: #f5f5f5;
    white-space: nowrap;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: .15rem solid #60688b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.avatar-initials-large {
    color: #60688b;
    background: transparent;
    font-size: 1.125rem;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info {
    flex: 1;
    min-width: 0;
    text-wrap-mode: wrap;
}

    .user-info .user-name {
        overflow-wrap: anywhere;
        font-size: 1rem;
        text-align: center;
    }

    .user-info .user-email {
        font-size: 0.9rem;
        color: #6c757d;
        text-align: center;
        word-break: break-all;
    }

.dropdown-section {
    padding: 0.25rem 0;
}

    .dropdown-section + .dropdown-section {
        border-top: 1px solid #e9ecef;
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }

.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    padding: 0 1rem;
}

.dropdown-item.modern {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    color: #495057;
    text-decoration: none;
}

    .dropdown-item.modern:hover {
        background: #f8f9fa;
        text-decoration: none;
        color: #212529;
    }

    .dropdown-item.modern.sign-out {
        color: #dc3545;
    }

        .dropdown-item.modern.sign-out:hover {
            background: #fff5f5;
            color: #a91e2c;
        }

.item-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    background: #f8f9fa;
}

    .item-icon-container.edit {
        color: #6c757d;
    }

    .item-icon-container.security {
        color: #6c757d;
    }

    .item-icon-container.orders {
        color: #6c757d;
    }

    .item-icon-container.help {
        color: #6c757d;
    }

    .item-icon-container.logout {
        color: #dc3545;
    }

.dropdown-item.modern:hover .item-icon-container {
    transform: scale(1.05);
    background: white;
}

    .dropdown-item.modern:hover .item-icon-container.edit {
        background: rgba(108, 117, 125, 0.08);
    }

    .dropdown-item.modern:hover .item-icon-container.orders {
        background: rgba(108, 117, 125, 0.08);
    }

    .dropdown-item.modern:hover .item-icon-container.security {
        background: rgba(108, 117, 125, 0.08);
    }

    .dropdown-item.modern:hover .item-icon-container.help {
        background: rgba(108, 117, 125, 0.08);
    }

    .dropdown-item.modern:hover .item-icon-container.logout {
        background: rgba(220, 53, 69, 0.08);
    }

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 14px;
}

.item-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-email {
        max-width: 120px;
    }

    .profile-dropdown {
        min-width: 260px;
        max-width: calc(100vw - 2rem); 
        right: -0.5rem;
    }
}

.user-info .user-email {
    word-break: break-word; 
}

@media (max-width: 480px) {
    .profile-email {
        display: none;
    }

    .profile-button {
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        height: auto;
        padding: 0;
    }

        .profile-button:hover {
            background: transparent;
            box-shadow: none;
        }

    .profile-info {
        display: none;
    }

    .profile-avatar {
        margin: 0;
        width: 42px;
        height: 42px;
    }

    .profile-dropdown {
        min-width: 240px;
        max-width: calc(100vw - 1rem);
    }
}
