:root {
    --chat-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --chat-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --chat-gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --chat-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
    --chat-shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);
    --chat-shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);
    --chat-border-radius: 20px;
    --chat-border-radius-small: 12px;
    --chat-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --chat-glow: 0 0 20px rgba(89, 35, 217, 0.3);
}
.main-content,
.playground-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: hidden;
    background: linear-gradient(135deg, var(--bg-main) 0%, #0f0f1a 100%);
    color: var(--text-primary);
    height: 100vh;
    width: 100%;
    position: relative;
    margin-left: 0;
}

.sidebar.collapsed ~ .main-area .main-content,
.sidebar.collapsed ~ .main-area .playground-content {
    margin-left: 0;
    width: 100vw;
}

.playground-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.playground-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(89, 35, 217, 0.05) 0%, rgba(124, 77, 255, 0.05) 100%);
    pointer-events: none;
}

.playground-header .header-center {
    flex-grow: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.playground-header .header-left, 
.playground-header .header-right {
    flex-shrink: 0;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 50%, #b388ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(89, 35, 217, 0.3);
}

.page-title i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.agent-active-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(89, 35, 217, 0.1);
    border: 1px solid rgba(89, 35, 217, 0.2);
    border-radius: var(--chat-border-radius-small);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--chat-transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(89, 35, 217, 0.1);
}

.agent-active-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(89, 35, 217, 0.2), transparent);
    transition: left 0.6s ease;
}

.agent-active-btn:hover::before {
    left: 100%;
}

.agent-active-btn:hover {
    background: rgba(89, 35, 217, 0.15);
    border-color: rgba(89, 35, 217, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-soft);
}

.agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(89, 35, 217, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.agent-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.agent-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--chat-border-radius-small);
    box-shadow: var(--chat-shadow-medium);
    min-width: 220px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--chat-transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agent-option:last-child {
    border-bottom: none;
}

.agent-option:hover {
    background: rgba(89, 35, 217, 0.1);
    transform: translateX(4px);
}
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(89, 35, 217, 0.1);
    border: 1px solid rgba(89, 35, 217, 0.2);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--chat-transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(89, 35, 217, 0.1);
}

.refresh-btn:hover {
    background: rgba(89, 35, 217, 0.15);
    color: var(--accent);
    border-color: rgba(89, 35, 217, 0.3);
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--chat-shadow-soft);
}
.chat-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.chat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(89, 35, 217, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.chat-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    position: relative;
    z-index: 1;
}

.chat-container::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    border-radius: 8px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.message-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    width: 100%;
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes messageSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.message-row.initial-message {
    justify-content: center;
    text-align: center;
    margin: 3rem auto;
}

.message-row.initial-message .bubble {
    max-width: 600px;
    text-align: center;
    background: rgba(89, 35, 217, 0.1);
    border: 1px solid rgba(89, 35, 217, 0.2);
    box-shadow: var(--chat-shadow-soft);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.message-row.user {
    align-self: flex-end;
    justify-content: flex-end;
    margin-right: 0;
}

.message-row.bot {
    flex-direction: row;
    align-self: flex-start;
    justify-content: flex-start;
    margin-left: 0;
}
.bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: var(--chat-border-radius);
    padding: 1.25rem 1.75rem;
    max-width: 85%;
    word-break: break-word;
    white-space: pre-wrap;
    flex-shrink: 0;
    box-shadow: var(--chat-shadow-soft);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    transition: var(--chat-transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: var(--chat-border-radius);
    pointer-events: none;
}

.bubble.user {
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: var(--chat-shadow-medium);
    border: none;
    position: relative;
    overflow: hidden;
}

.bubble.user::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.bubble.user::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bubble.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 8px;
    box-shadow: var(--chat-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.2);
    box-shadow: var(--chat-shadow-medium), var(--chat-glow);
}

.bubble:hover {
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-medium);
}

.bubble.bot:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-medium), 0 0 25px rgba(89, 35, 217, 0.4);
}
.bubble.bot .message-content pre {
    background: #1a1a2e;
    border: 1px solid rgba(89, 35, 217, 0.5);
    border-radius: var(--chat-border-radius-small);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--chat-shadow-medium);
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
    transition: all 0.3s ease;
}

.bubble.bot .message-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    color: #e6e6e6;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}
.input-container {
    flex-shrink: 0;
    padding: 1.5rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(15, 15, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(89, 35, 217, 0.05) 0%, transparent 100%);
    pointer-events: none;
}
.input-wrapper {
    display: flex;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--chat-border-radius);
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: var(--chat-shadow-soft);
    gap: 1rem;
    transition: var(--chat-transition);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(89, 35, 217, 0.3);
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89, 35, 217, 0.05) 0%, rgba(124, 77, 255, 0.05) 100%);
    border-radius: var(--chat-border-radius);
    pointer-events: none;
}

.input-field-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

#user-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    padding: 0.75rem 0;
    margin: 0;
    resize: none;
    overflow-y: auto;
    max-height: 200px;
    line-height: 1.6;
    align-self: center;
    font-family: inherit;
}

#user-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: italic;
}
.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.input-btn {
    background: rgba(89, 35, 217, 0.1);
    border: 1px solid rgba(89, 35, 217, 0.2);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: var(--chat-transition);
    flex-shrink: 0;
    line-height: 0;
    align-self: center;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.input-btn:hover {
    color: var(--accent);
    background: rgba(89, 35, 217, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--chat-shadow-soft);
}

.send-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(89, 35, 217, 0.3);
}

.send-btn-primary:hover {
    background: linear-gradient(135deg, #7c4dff 0%, #b388ff 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(89, 35, 217, 0.4);
}
.input-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.input-info i {
    color: var(--accent);
    font-size: 0.8rem;
}
.loading-indicator .bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.loading-indicator .message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.loading-indicator .message-content::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.error-message .bubble {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.retry-btn, .report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--chat-border-radius-small);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--chat-transition);
    font-weight: 500;
}

.retry-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.report-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.retry-btn:hover, .report-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-soft);
}
.connection-status {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--chat-border-radius-small);
    font-size: 0.9rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--chat-transition);
    backdrop-filter: blur(20px);
    box-shadow: var(--chat-shadow-medium);
}

.connection-status.offline {
    background: rgba(255, 71, 87, 0.1);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.connection-status.online {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}
.selected-files-preview {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--chat-border-radius-small);
    width: 100%;
    max-width: 900px;
    box-shadow: var(--chat-shadow-soft);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.selected-files-preview h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-files-preview h4 i {
    color: var(--accent);
}

.selected-files-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
}

.selected-files-preview li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--chat-transition);
}

.selected-files-preview li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--chat-border-radius-small);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin: 0 -0.75rem;
}

.selected-files-preview li:last-child {
    border-bottom: none;
}

.selected-files-preview .file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    margin-right: 0.75rem;
}

.selected-files-preview .file-name {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

.selected-files-preview .remove-file-chat {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff6b7a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--chat-transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-files-preview .remove-file-chat:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .playground-header {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .chat-card {
        padding: 0 1rem;
    }

    .chat-container {
        padding: 1.5rem 0;
    }

    .bubble {
        max-width: 90%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .input-container {
        padding: 1rem;
    }

    .input-wrapper {
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }

    .input-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .agent-active-btn {
        padding: 0.5rem 1rem;
    }

    .agent-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .playground-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left, .header-right {
        padding: 0;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .bubble {
        max-width: 95%;
        padding: 0.875rem 1rem;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-field-container {
        width: 100%;
    }

    .input-actions {
        justify-content: center;
    }
}
.bubble.user:hover {
    transform: translateY(-3px);
    box-shadow: var(--chat-shadow-strong);
}

.bubble.bot:hover {
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-medium);
    background: rgba(255, 255, 255, 0.08);
}
.selected-files-preview ul::-webkit-scrollbar {
    width: 6px;
}

.selected-files-preview ul::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent) 0%, #7c4dff 100%);
    border-radius: 3px;
}

.selected-files-preview ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.bubble.user {
    position: relative;
    overflow: hidden;
}

.bubble.user::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.bubble.bot.typing {
    position: relative;
}

.bubble.bot.typing::after {
    content: '...';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.new-chat-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gradient-primary, linear-gradient(90deg, #7c4dff 0%, #5923d9 100%));
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(89,35,217,0.18);
  font-size: 1.7rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  position: relative;
  z-index: 20;
  margin-left: 1rem;
}
.new-chat-fab:hover, .new-chat-fab:focus {
  background: var(--gradient-accent, linear-gradient(90deg, #4facfe 0%, #00f2fe 100%));
  box-shadow: 0 8px 32px rgba(89,35,217,0.28);
  transform: translateY(-2px) scale(1.07);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 700px) {
  .new-chat-fab {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-left: 0.5rem;
  }
}
.message-bubble, .bubble, .chat-bubble {
  max-width: 70vw;
  padding: 0.7rem 1.1rem !important;
  margin: 0.5rem 0 !important;
  border-radius: 1.1rem !important;
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(89,35,217,0.10);
}
.new-chat-fab-fixed {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary, linear-gradient(90deg, #7c4dff 0%, #5923d9 100%));
  color: #fff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(89,35,217,0.28);
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s, filter 0.18s;
  outline: none;
}
.new-chat-fab-fixed:hover, .new-chat-fab-fixed:focus {
  background: var(--gradient-accent, linear-gradient(90deg, #4facfe 0%, #00f2fe 100%));
  box-shadow: 0 12px 40px rgba(89,35,217,0.38);
  transform: translateY(-4px) scale(1.10);
  filter: brightness(1.15) drop-shadow(0 0 8px #7c4dff88);
}
.new-chat-fab-fixed:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(89,35,217,0.18);
}
.chat-messages, .chat-area, .messages-container, .chat-content-area {
  scrollbar-width: thin;
  scrollbar-color: #7c4dff #e6e6fa;
}
.chat-messages::-webkit-scrollbar, .chat-area::-webkit-scrollbar, .messages-container::-webkit-scrollbar, .chat-content-area::-webkit-scrollbar {
  width: 8px;
  background: #e6e6fa;
  border-radius: 8px;
}
.chat-messages::-webkit-scrollbar-thumb, .chat-area::-webkit-scrollbar-thumb, .messages-container::-webkit-scrollbar-thumb, .chat-content-area::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #7c4dff 0%, #5923d9 100%);
  border-radius: 8px;
}
