/* ===== ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #2f3656;
    --secondary-color: #efe6e1;
    --accent-color: #dfc9bd;
    --text-gray: #9c9692;
    --light-gray: #e4e7f2;
    --token-gray: #999999;
    --white: #ffffff;
    --black: #000000;
    --assistant-box: #F7F3F0;
    --shadow: 0px -1px 10px rgba(0, 0, 0, 0.25);
    --border-radius-small: 7px;
    --border-radius-medium: 10px;
    --border-radius-large: 25px;
    --header-height: 80px;
    --bottom-panel-height: 120px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Базовые стили */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #ffffff; /* Fallback-цвет на случай, если изображение не загрузится */
    background-size: cover; /* Изображение покрывает весь фон */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* Фон фиксируется и не прокручивается с содержимым */
    min-height: 100vh; /* Body покрывает весь экран по высоте */
    margin: 0;
    padding: 0;
}


/* Скрытие элементов */
.hidden {
    display: none !important;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0 auto;
    position: relative;
}

/* ===== ХЕДЕР ===== */
.header {
    background: var(--white);
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-title {
    font-size: clamp(24px, 5.5vw, 32px);
    font-weight: 700;
    color: var(--black);
    text-align: center;
    flex: 1;


    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18ch;
}

.history-icon,
.new-chat-icon {
    width: clamp(28px, 6.5vw, 36px);
    height: clamp(28px, 6.5vw, 36px);
    background-size: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.new-chat-icon {
    position: relative;
}

/* ===== ОБЛАСТЬ СООБЩЕНИЙ ===== */
.messages-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: calc(var(--header-height) + 20px) 20px calc(var(--bottom-panel-height) + 20px);
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ СООБЩЕНИЙ ===== */
.user-message-text,
.assistant-message-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    /*white-space: pre-wrap;*/
    word-wrap: normal;
    overflow-wrap: break-word;
    /*word-break: normal;*/
    hyphens: manual;
    -webkit-hyphens: manual;
    -moz-hyphens: manual;
    text-align: left;
    color: var(--black);
    font-size: clamp(15px, 4vw, 20px);
    word-break: break-word;
    white-space: pre-line;
    display: block;
    gap: -2vw;

}

.assistant-message-text ul,
.assistant-message-text ol {
    padding-left: 2em;
    list-style-position: outside; /* Важно! */
}

.assistant-message-text ul li,
.assistant-message-text ol li {
    padding-left: 0.5em; /* Дополнительный отступ */
}

/* Для вложенных списков */
.assistant-message-text ul ul,
.assistant-message-text ol ol,
.assistant-message-text ul ol,
.assistant-message-text ol ul {
    padding-left: 1.5em;
}


.user-message {
    max-width: clamp(280px, 80%, 450px);
    width: fit-content;
    background: var(--light-gray, #f5f5ef);
    border-radius: var(--border-radius-large, 27px) var(--border-radius-large, 27px) var(--border-radius-small, 14px) var(--border-radius-large, 27px);
    margin-left: auto;
    margin-bottom: clamp(12px, 3vw, 16px);
    position: relative;
    padding: clamp(10px, 2vw, 20px) clamp(16px, 3vw, 38px); /* Снизу padding больше — под время */
    box-sizing: border-box;
}


.user-message-time {
    display: block;
    text-align: right;
    color: #a8a88b;
    font-size: 0.97em;
    opacity: 0.70;
    margin-top: 4px;
    margin-right: 2px;
    user-select: none;
}

/* ===== СООБЩЕНИЯ АССИСТЕНТА ===== */

.assistant-message {
    max-width: 95%;
    width: fit-content;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    margin-bottom: 14px;
}

.assistant-message-content {
    background: var(--assistant-box);
    border-radius: var(--border-radius-small) var(--border-radius-large) var(--border-radius-large) var(--border-radius-large);
    padding: clamp(10px, 2vw, 20px) clamp(16px, 3vw, 38px);
    max-width: 90vw;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.assistant-message-text {
    font-size: 1rem;
    color: var(--black);
    margin: 0;
    white-space: pre-line;
}

.assistant-message-bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.assistant-message-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
}

.assistant-message-time {
    color: var(--text-gray);
    font-size: 0.97em;
    opacity: 0.75;
    margin-left: 12px;
    white-space: nowrap;
}

.assistant-avatar,
.thinking-avatar {
    width: clamp(50px, 12vw, 67px);
    height: clamp(50px, 12vw, 67px);
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.assistant-avatar img,
.thinking-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-menu-btn {
    width: clamp(20px, 5vw, 30px);
    height: clamp(20px, 5vw, 30px);
    border: none;
    cursor: pointer;
    background-size: cover;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.message-menu-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.message-menu-btn:active {
    transform: scale(0.95);
}

.message-menu-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.message-menu-btn.disabled:hover {
    transform: none;
}

.action-btn {
    background-image: url('/static/img/icons/regen.svg');
}

.copy-btn {
    background-image: url('/static/img/icons/copy.svg');
}

.tokens-count {
    color: var(--text-gray);
    font-size: clamp(15px, 2.7vw, 24px);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1;
    padding-left: 10px;
}

/* ===== АНИМАЦИЯ ДУМАНИЯ ===== */
.thinking-animation {
    max-width: clamp(130px, 30vw, 157px);
    height: clamp(50px, 12vw, 67px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    margin-right: auto;
    margin-bottom: clamp(12px, 3vw, 16px);
    position: relative;
}

.thinking-dots {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
    border-radius: var(--border-radius-small) var(--border-radius-large) var(--border-radius-large) var(--border-radius-large);
}

.thinking-dot {
    width: clamp(10px, 2.5vw, 14px);
    height: clamp(10px, 2.5vw, 14px);
    border-radius: 50%;
    animation: thinking-pulse 1.5s ease-in-out infinite;
}

.thinking-dot:nth-child(1) {
    background: #BFC8E9;
    animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
    background: #95A1CA;
    animation-delay: 0.3s;
}

.thinking-dot:nth-child(3) {
    background: #5A6794;
    animation-delay: 0.6s;
}

@keyframes thinking-pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== НИЖНЯЯ ПАНЕЛЬ ===== */
.bottom-panel {
    background: var(--secondary-color);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    box-shadow: var(--shadow);
    padding: clamp(8px, 10vw, 8px) clamp(20px, 3.5vw, 20px) clamp(8px, 10vw, 10px) clamp(20px, 3.5vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 12px);
    flex-shrink: 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.input-label {
    font-size: clamp(18px, 2.5vw, 23px);
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0;
    border: none;
    outline: none;
    background: transparent;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    width: 100%;
    height: 1.4em;
    line-height: 1.4;
    overflow: hidden;
    resize: none;
    padding: 0;
    scrollbar-width: thin;
}

.input-label::-webkit-scrollbar {
    width: 3px;
}

.input-label::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.input-label::placeholder {
    color: var(--text-gray);
}

.input-container {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 17px);
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 17px);
}

/* ===== КНОПКИ ПАНЕЛИ ===== */
.mic-button,
.send-button {
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    outline: none;
}

.mic-button {
    width: clamp(45px, 9.5vw, 54px);
    height: clamp(45px, 9.5vw, 54px);
    background: var(--white);
}

.send-button {
    width: clamp(50px, 10.5vw, 60px);
    height: clamp(50px, 10.5vw, 60px);
    background: var(--accent-color);
    transition: background-color 0.3s ease;
    opacity: 0.6;
}

.send-button.active {
    background: #5A6794;
    opacity: 1;
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.mic-icon {
    width: clamp(24px, 5.5vw, 32px);
    height: clamp(25px, 5.7vw, 33px);
    background-size: contain;
    background-repeat: no-repeat;
}

.send-icon {
    width: clamp(20px, 6vw, 30px);
    height: clamp(20px, 6vw, 30px);
    background-size: contain;
    background-repeat: no-repeat;
}

.tokens-field {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(45px, 9.5vw, 54px);
    width: max-content;
    background: var(--white);
    border-radius: 60px;
    padding: 0 clamp(15px, 4vw, 23px);
    font-size: clamp(16px, 4.2vw, 24px);
    font-weight: 600;
    color: var(--token-gray);
    outline: none;
    text-decoration: none;
}

/* ===== WELCOME СЕКЦИЯ ===== */
.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 10vh, 80px);
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: calc(var(--bottom-panel-height) + 20px);
    min-height: calc(100vh - var(--header-height) - var(--bottom-panel-height));
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2.5vw, 14px);
    text-align: center;
    flex: 1;
    justify-content: center;
}

.avatar {
    width: clamp(100px, 35vw, 200px);
    height: clamp(100px, 35vw, 200px);
    border-radius: 50%;
    background: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

.avatar-name {
    font-family: 'Angst', serif;
    font-size: clamp(28px, 8.5vw, 48px);
    font-weight: 600;
    color: var(--black);
    letter-spacing: 1.44px;
}

.avatar-description {
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 500;
    color: var(--black);
    line-height: 1.1;
    max-width: min(70vw, 368px);
}

/* ===== ПОПУЛЯРНЫЕ ЗАПРОСЫ ===== */
.popular-queries {
    width: 100%;
    max-width: min(90vw, 507px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 15px);
    margin-bottom: clamp(20px, 5vw, 30px);
    position: static;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    z-index: auto;
}

.queries-title {
    font-family: 'Angst', serif;
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 400;
    color: var(--primary-color);
    text-align: center;
}

.queries-list {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
}

.query-item {
    background: var(--light-gray);
    border-radius: var(--border-radius-medium);
    height: clamp(45px, 10vw, 55px);
    display: flex;
    align-items: center;
    padding: 0 0 0 clamp(40px, 10vw, 30px);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.query-item:hover {
    background: #d8dde8;
}

.query-item::before {
    content: '';
    position: absolute;
    left: clamp(20px, 5vw, 29px);
    width: 9px;
    height: 9px;
    background: var(--primary-color);
    border-radius: 50%;
}

.query-text {
    font-size: clamp(16px, 4.2vw, 24px);
    font-weight: 500;
    color: var(--black);
}

/* ===== БОКОВОЕ МЕНЮ ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 27, 4, 0.5);
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 var(--border-radius-medium) rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.menu-header {
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    background: var(--white);
}


.close-button {
    height: 0;
    visibility: hidden;
}

.menu-content {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
}

.menu-category {
    margin-bottom: 30px;
}

.menu-category.empty {
    display: none;
}

.menu-category-title {
    color: var(--primary-color);
    font-size: 22px;
    font-family: 'Angst', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.menu-item:hover {
    color: var(--primary-color);
}

.menu-item:hover .menu-item-date {
    color: var(--primary-color);
}

.menu-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 16px; /* отступ между заголовком и датой */
}

.menu-item-date {
    flex-shrink: 0;
    font-size: 14px;
    color: #888;
    font-weight: 400;
    text-align: left;
    min-width: 45px; /* минимальная ширина для выравнивания */
}


/* ===== ФАЙЛЫ ===== */

.bottom-panel {
    transition: all 0.3s ease;
}

.bottom-panel.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
    transform: scale(1.02);
}

/* Дополнительный эффект для лучшего UX */
.bottom-panel.drag-over::after {
    content: "Отпустите файлы для прикрепления";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(33, 150, 243, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
}


#fileList {
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

#fileList:empty {
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#fileList::-webkit-scrollbar {
    height: 6px;
}

#fileList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#fileList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.file-container {
    width: 186px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.file-box {
    width: 100%;
    height: 40px;
    position: absolute;
    left: 0;
    top: 4px;
    background: var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.10);
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.file-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 5px;
    margin-right: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon-inner {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-image: url('/static/img/icons/file.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-info {
    flex: 1;
    overflow: hidden;
    margin-right: 20px;
}

.file-name {
    color: var(--black);
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.file-size {
    color: #817B78;
    font-size: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

.remove-button {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: -2px;
    top: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-button::before,
.remove-button::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 8px;
    background: var(--white);
}

.remove-button::before {
    transform: rotate(45deg);
}

.remove-button::after {
    transform: rotate(-45deg);
}

/* ===== ФАЙЛЫ В СООБЩЕНИЯХ ===== */
.user-message-files {
    margin-top: 10px;
    margin-bottom: 0;
}

.user-message-file {
    width: 150px;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: table;
}

.user-message-file-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 8px;
    vertical-align: middle;
    text-align: center;
    min-width: 35px;
    max-width: 35px;
}

.user-message-file-icon-inner {
    width: 22px;
    height: 22px;
    background-image: url('/static/img/icons/file.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    margin: 6.5px auto;
}

.user-message-file-content {
    display: table-cell;
    vertical-align: middle;
    padding-left: 12px;
    width: 100%;
}

.user-message-file-name {
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    color: var(--black);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-message-file-size {
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: #817B78;
    margin: 2px 0 0 0;
    padding: 0;
    line-height: 1.2;
    display: block;
}

/* Основной контейнер пункта меню */
.menu-item {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    position: relative;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.menu-item-title {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

/* Правая часть - время и кнопка */
.menu-item-right {
    position: relative;
    flex-shrink: 0;
    height: 20px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-item-date {
    font-size: 0.875rem;
    opacity: 0.6;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Кнопка с тремя точками */
.menu-item-more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.menu-item-more:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Показ/скрытие элементов при взаимодействии */
@media (hover: hover) {
    .menu-item:hover .menu-item-more {
        opacity: 0.8;
    }

    .menu-item:hover .menu-item-more:hover {
        opacity: 1;
    }

    .menu-item:hover .menu-item-date {
        opacity: 0;
    }
}

/* Состояние касания для мобильных */
.menu-item.touch-active .menu-item-more {
    opacity: 0.8;
}

.menu-item.touch-active .menu-item-date {
    opacity: 0;
}

/* Активное состояние при открытом контекстном меню */
.menu-item.context-menu-active {
    background-color: rgba(0, 0, 0, 0.08);
}

.menu-item.context-menu-active .menu-item-more {
    opacity: 1;
}

.menu-item.context-menu-active .menu-item-date {
    opacity: 0;
}

/* Контекстное меню */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    animation: contextMenuFadeIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 8px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.context-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.context-menu-item:last-child:hover {
    color: #dc3545;
}

.context-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Поле для переименования */
.menu-item-rename-input {
    font-size: inherit;
    font-weight: 500;
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 4px 8px;
    background: white;
    outline: none;
    width: 100%;
}
