/* ============================================= */
/* СТИЛИ ДЛЯ СТАТУСОВ И ЭЛЕМЕНТОВ ИНТЕРФЕЙСА     */
/* ============================================= */

/* ----- Бейдж статуса (кружок с иконкой) ----- */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ----- Выпадающее меню выбора статуса в левой панели ----- */
.status-menu-dropdown {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary, #2b2b2b);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid var(--border-color, #3a3a3a);
}

.status-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.2s;
    color: var(--text-primary, #e0e0e0);
}

.status-menu-item:hover {
    background-color: var(--bg-hover, #3a3a3a);
}

.status-menu-item i:first-child {
    width: 18px;
    text-align: center;
}

.status-menu-item .fa-check {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
}

/* ----- Аватар в левой панели ----- */
.left-toolbar-avatar {
    position: relative;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-toolbar-avatar img,
.left-toolbar-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.left-toolbar-avatar span {
    background: var(--primary, #4a6cf7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
}

/* ----- Тултипы при наведении ----- */
.portal-tooltip {
    position: fixed;
    background: var(--bg-tooltip, #333);
    color: var(--text-tooltip, #fff);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 999999;
    transform: translateY(-50%);
}

/* ----- Адаптив для мобильных устройств ----- */
@media (max-width: 768px) {
    .status-menu-dropdown {
        top: 70px;
        left: 10px;
        transform: none;
        min-width: 200px;
    }
}

/* ============================================= */
/* СТИЛИ ДЛЯ МОДАЛКИ ПРОФИЛЯ (новые поля)       */
/* ============================================= */

/* Поле с иконкой и содержимым */
.profile-info-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #3a3a3a);
}

.profile-info-field:last-of-type {
    border-bottom: none;
}

.field-icon {
    width: 32px;
    text-align: center;
    color: var(--text-secondary, #a0a0a0);
    font-size: 14px;
}

.field-content {
    flex: 1;
    min-width: 0;
}

.field-label {
    font-size: 11px;
    color: var(--text-secondary, #a0a0a0);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-value {
    font-size: 14px;
    color: var(--text-primary, #e0e0e0);
    word-break: break-word;
}

.field-arrow {
    color: var(--text-secondary, #a0a0a0);
    font-size: 12px;
}

/* Редактируемое поле (как ссылка) */
.profile-editable-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #3a3a3a);
    cursor: pointer;
    transition: background 0.2s;
}

.profile-editable-field:hover {
    background: var(--bg-hover, #3a3a3a);
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: 6px;
}

.profile-editable-field .field-arrow {
    color: var(--text-secondary, #a0a0a0);
}

/* Блок "О себе" в режиме редактирования */
.profile-about-section {
    margin: 12px 0;
}

.profile-about-input {
    width: 100%;
    background: var(--bg-input, #2b2b2b);
    border: 1px solid var(--border-color, #3a3a3a);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary, #e0e0e0);
    resize: vertical;
    font-size: 14px;
}

.profile-about-input:focus {
    outline: none;
    border-color: var(--primary, #4a6cf7);
}

.profile-about-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary, #a0a0a0);
    margin-top: 4px;
}

.profile-about-example {
    font-size: 12px;
    color: var(--text-secondary, #a0a0a0);
    margin-top: 4px;
    opacity: 0.7;
}

.profile-about-example i {
    margin-right: 4px;
}

/* Кнопка сохранения в модалке */
.btn-primary.w-100 {
    margin-top: 16px;
}