/* /var/www/oraclellm/css/chat.css */

.chat-history .sidebar-link {
    justify-content: space-between;
    align-items: center;
}

.chat-history .sidebar-link .chat-actions-btn {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 4px;
    font-size: 0.9rem;
}

.chat-history .sidebar-link:hover .chat-actions-btn {
    visibility: visible;
    opacity: 1;
}

.message.system-message {
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    background: none;
}

#chat-share-link,
#message-share-link {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-overlay.is-visible {
    display: flex !important;
}

/* Стили для прелоадера */
.pwa-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Полная высота экрана */
    background-color: #1c1c1e; /* Фон, как указано */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Поверх всех элементов */
    opacity: 1; /* Начальная видимость */
    transition: opacity 0.3s ease; /* Плавное исчезновение */
}

.pwa-loader.hidden {
    opacity: 0; /* Прозрачность для анимации */
    display: none; /* Полное скрытие после анимации */
}

.spinner {
    display: flex;
    gap: 10px; /* Расстояние между точками */
}

.dot {
    width: 12px; /* Размер точек */
    height: 12px;
    background-color: #FFFFFF; /* Белый цвет для контраста */
    border-radius: 50%; /* Круглая форма */
    animation: pulse 1.5s infinite ease-in-out; /* Анимация пульсации */
}

.dot:nth-child(2) {
    animation-delay: 0.2s; /* Задержка для второй точки */
}

.dot:nth-child(3) {
    animation-delay: 0.4s; /* Задержка для третьей точки */
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}
