* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Темы */
.theme-light {
    --bg-color: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-color: #000000;
    --text-secondary: #707579;
    --border-color: #e9ecef;
    --hover-color: #f0f0f0;
    --message-bg-own: #e4f0fa;
    --message-bg-other: #ffffff;
    --header-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.theme-dark {
    --bg-color: #18191a;
    --bg-secondary: #242526;
    --text-color: #e4e6eb;
    --text-secondary: #b0b3b8;
    --border-color: #3e4042;
    --hover-color: #3a3b3c;
    --message-bg-own: #005c4b;
    --message-bg-other: #202c33;
    --header-bg: #1e1f22;
    --input-bg: #3a3b3c;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Основные контейнеры */
.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.screen {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

/* Экраны */
#auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: var(--bg-secondary);
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
}

/* Формы */
.auth-form {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-tab.active {
    background: #3390ec;
    color: white;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
}

.auth-input:focus {
    outline: none;
    border-color: #3390ec;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background: #3390ec;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.auth-button:hover {
    background: #1f6cb5;
}

/* Основной интерфейс */
#main-screen {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        z-index: 10;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .chat-area {
        width: 100%;
    }
}

.sidebar-header {
    padding: 15px;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--input-bg);
    color: var(--text-color);
}

.chats-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-item:hover {
    background: var(--hover-color);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3390ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
}

.chat-last-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Чат область */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.chat-header {
    padding: 15px;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.back-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .back-button {
        display: block;
    }
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    margin: 5px 0;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.message-own {
    align-self: flex-end;
    background: var(--message-bg-own);
}

.message-other {
    align-self: flex-start;
    background: var(--message-bg-other);
}

.message-input-area {
    padding: 20px;
    background: var(--bg-secondary);
    display: flex;
    gap: 10px;
}

.message-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--input-bg);
    color: var(--text-color);
}

.send-button {
    padding: 12px 25px;
    background: #3390ec;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

/* Меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.menu-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: var(--bg-secondary);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1001;
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-item {
    padding: 15px;
    margin: 5px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-item:hover {
    background: var(--hover-color);
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #3390ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
}

.profile-username {
    color: var(--text-secondary);
    margin-top: 5px;
}

.back-arrow {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Настройки */
.settings-item {
    padding: 15px;
    margin: 10px 0;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.theme-toggle {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
}

.theme-button.active {
    background: #3390ec;
    color: white;
    border-color: #3390ec;
}

/* Эффект для логотипа Telemain */
.logo-text {
    font-size: 32px;
    font-weight: bold;
    margin-top: 10px;
    background: linear-gradient(45deg, #3390ec, #7c4dff, #3390ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
    text-shadow: 0 0 20px rgba(51, 144, 236, 0.3);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Заглушка для пустого чата */
.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.empty-chat-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-chat-text {
    font-size: 24px;
    color: var(--text-color);
}

/* Контекстное меню */
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 8px 0;
    min-width: 200px;
    z-index: 2000;
    display: none;
}

.context-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: var(--hover-color);
}

.context-menu-item.danger {
    color: #ff3b30;
}

.context-menu-item.danger:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* Мини меню удаления */
.delete-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px var(--shadow-color);
    z-index: 3000;
    min-width: 300px;
    display: none;
}

.delete-dialog.active {
    display: block;
}

.delete-dialog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.delete-dialog-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.delete-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.delete-dialog-button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

.delete-dialog-button.cancel {
    background: var(--bg-color);
    color: var(--text-color);
}

.delete-dialog-button.delete {
    background: #ff3b30;
    color: white;
}

/* Реакции */
.reactions-panel {
    position: fixed;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 20px var(--shadow-color);
    display: none;
    gap: 5px;
    z-index: 2500;
}

.reactions-panel.active {
    display: flex;
}

.reaction-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.reaction-emoji:hover {
    background: var(--hover-color);
}

.message-reactions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.message-reaction {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
}

/* Индикатор страны */
.country-selector {
    position: relative;
    margin: 10px 0;
}

.country-input {
    width: 100%;
    padding: 12px 12px 12px 60px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
}

.country-flag {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 20px;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
}

.country-code {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Кастомное окно ошибки */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px var(--shadow-color);
    z-index: 4000;
    min-width: 300px;
    display: none;
}

.custom-alert.active {
    display: block;
}

.custom-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ff3b30;
}

.custom-alert-message {
    margin-bottom: 20px;
    color: var(--text-color);
}

.custom-alert-button {
    width: 100%;
    padding: 12px;
    background: #3390ec;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

/* Закрепленные чаты */
.pinned-chat {
    background: rgba(51, 144, 236, 0.1);
}

.pin-icon {
    color: #3390ec;
    margin-left: 5px;
    font-size: 14px;
}

/* Аватарка в меню */
.menu-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.menu-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    background-color: #3390ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.menu-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.menu-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Загрузка аватарки */
.avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.avatar-upload:hover .avatar-overlay {
    opacity: 1;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3390ec;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-input {
    display: none;
}

/* Каналы */
.chat-item.channel {
    background: rgba(51,144,236,0.05);
}
.chat-item.channel .chat-avatar {
    border-radius: 30%;
    background: #3390ec;
    color: white;
    font-size: 20px;
}
.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #3390ec;
    color: white;
    margin-left: 8px;
}
.bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #28a745;
    color: white;
}
.bot-verified {
    width: 16px;
    height: 16px;
}
.theme-dark .chat-item.channel {
    background: rgba(51,144,236,0.15);
}

/* Исправление для списка аккаунтов */
.accounts-section {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.accounts-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.account-item {
    width: 70px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.account-item:hover {
    transform: translateY(-2px);
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 22px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.account-avatar.active {
    border-color: #3390ec;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(51,144,236,0.3);
}

.account-avatar.empty {
    border: 2px dashed var(--border-color);
    background: var(--bg-color) !important;
    color: var(--text-secondary);
    font-size: 24px;
    box-shadow: none;
}

.account-avatar.empty:hover {
    border-color: #3390ec;
    color: #3390ec;
}

.account-name {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    font-weight: 500;
}

/* Для темной темы */
.theme-dark .account-avatar.empty {
    border-color: #404040;
    color: #808080;
}

.theme-dark .account-avatar.empty:hover {
    border-color: #3390ec;
    color: #3390ec;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .accounts-list {
        gap: 15px;
    }
    
    .account-item {
        width: 60px;
    }
    
    .account-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .account-name {
        max-width: 60px;
        font-size: 12px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ НОВЫХ ЭЛЕМЕНТОВ ========== */

/* Секция аккаунтов в меню */
.accounts-section {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.add-account-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-account-btn:hover {
    background: var(--hover-color);
}

.accounts-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.account-item {
    width: 70px;
    text-align: center;
    cursor: pointer;
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 22px;
    border: 2px solid transparent;
}

.account-avatar.active {
    border-color: #3390ec;
}

.account-avatar.empty {
    border: 2px dashed var(--border-color);
    background: var(--bg-color) !important;
    color: var(--text-secondary);
    font-size: 24px;
}

.account-name {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* Профиль в меню */
.menu-profile {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.menu-profile:hover {
    background: var(--hover-color);
}

.menu-info {
    flex: 1;
    margin-left: 10px;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* Результаты поиска */
.search-results {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 5px;
}

.search-result-item:hover {
    background: var(--hover-color);
}

/* Каналы */
.chat-item.channel {
    background: rgba(51, 144, 236, 0.05);
}

.chat-item.channel .chat-avatar {
    border-radius: 30%;
    background: #3390ec;
    color: white;
    font-size: 20px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin: 10px 0;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
}

.channel-item:hover {
    background: var(--hover-color);
}

/* Бот */
.chat-item.bot {
    background: rgba(40, 167, 69, 0.05);
}

.chat-item.bot .chat-avatar {
    background: #28a745;
}

.message.bot {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #28a745;
    color: white;
}

.bot-verified {
    width: 16px;
    height: 16px;
}

/* Конфиденциальность */
.privacy-item {
    padding: 15px;
    margin: 10px 0;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-toggle {
    width: 50px;
    height: 26px;
    background: var(--bg-color);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.privacy-toggle.active {
    background: #3390ec;
}

.privacy-toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.privacy-toggle.active::after {
    transform: translateX(24px);
}

/* Загрузка аватарки */
.avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-upload:hover .avatar-overlay {
    opacity: 1;
}

.avatar-input {
    display: none;
}

/* Прогресс загрузки */
.upload-progress {
    margin-top: 10px;
    width: 100%;
    height: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #3390ec;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Ссылка для копирования */
.link-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    cursor: pointer;
}

.link-copy:hover {
    background: var(--hover-color);
}

/* Список каналов */
.channels-list {
    padding: 10px;
}

/* Индикатор непрочитанных сообщений */
.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3390ec;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 4px;
}

/* Закрепленные чаты */
.pin-icon {
    color: #3390ec;
    margin-left: 5px;
    font-size: 14px;
}

.pinned-chat {
    background: rgba(51, 144, 236, 0.1);
}

/* Диалоги */
.delete-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.delete-dialog-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}
