/* ---------------------------------- */
/* ЛЕВАЯ ПАНЕЛЬ (ЧАТЫ) - БАЗОВЫЕ СТИЛИ */
/* ---------------------------------- */

.chats-panel {
    width: 340px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    transition: width var(--transition-slow) ease, background var(--transition);
    will-change: width;
}

.resize-handle {
    width: 6px;
    background: var(--primary);
    cursor: ew-resize;
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: 4px;
}

.chats-panel:hover .resize-handle {
    opacity: 0.6;
}

/* Адаптация для узких экранов – запрещаем изменение ширины */
@media (max-width: 768px) {
    .chats-panel {
        width: 100% !important;
        transition: transform var(--transition-slow) ease;
    }
    .resize-handle {
        display: none !important;
    }
}

/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .chats-panel,
    .resize-handle {
        transition: none;
    }
}






















/* Виджет обновления внизу левой панели */
.update-widget {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.update-widget:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
}
.update-widget-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.update-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.4);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
.update-widget-text {
    font-size: 13px;
    font-weight: 500;
    color: white;
}