/* =======================================================================
   💎 COMPONENT 1: DYNAMIC SEARCH BAR WITH AVATAR WRAPPER
   ======================================================================= */

.custom-search-header-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
    box-sizing: border-box;
}

/* Search input container box decoration styling */
.custom-search-header-box .search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.custom-search-header-box .search-glass-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #718096;
    pointer-events: none;
}

.custom-search-header-box input[type="text"] {
    width: 100% !important;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #f7fafc;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.custom-search-header-box input[type="text"]:focus {
    background: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* User Profile Avatar layout logic */
.custom-search-header-box .user-avatar-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.custom-search-header-box .user-avatar-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* User Profile Avatar text-fallback layout controller */
.custom-search-header-box .user-avatar-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf2f7;
    border: 1.5px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.custom-search-header-box .avatar-emoji-icon {
    font-size: 22px;
    user-select: none;
    line-height: 1;
}