/* DeepAgents Web - Modern CSS Styles */

:root {
    /* Color Palette - Modern Zinc/Slate/Indigo Theme */
    --primary: #6366f1;       /* Indigo 500 */
    --primary-dark: #4f46e5;  /* Indigo 600 */
    --primary-light: #818cf8; /* Indigo 400 */
    --secondary: #10b981;     /* Emerald 500 */
    --accent: #f59e0b;        /* Amber 500 */
    --danger: #ef4444;        /* Red 500 */
    
    /* Background Colors */
    --bg-dark: #09090b;       /* Zinc 950 */
    --bg-darker: #020617;     /* Slate 950 */
    --bg-card: #18181b;       /* Zinc 900 */
    --bg-card-hover: #27272a; /* Zinc 800 */
    --bg-input: #18181b;      /* Zinc 900 */
    --bg-message-user: #1e1b4b; /* Indigo 950 */
    
    /* Text Colors */
    --text-primary: #f4f4f5;   /* Zinc 100 */
    --text-secondary: #a1a1aa; /* Zinc 400 */
    --text-muted: #71717a;     /* Zinc 500 */
    
    /* Border Colors */
    --border-color: #27272a;   /* Zinc 800 */
    --border-light: #3f3f46;   /* Zinc 700 */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 60px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal);
    z-index: 100;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.tech-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        #00fff9 50%,
        #ff00c1 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.sidebar.collapsed .tech-text {
    display: none;
}

.sidebar-toggle {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
}

.sidebar.collapsed .nav-title {
    display: none;
}

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.25rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-btn i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.8;
}

.nav-btn.active i {
    opacity: 1;
    color: var(--primary-light);
}

.sidebar.collapsed .nav-btn span {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar.collapsed .status-text {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    position: relative;
}

.chat-header {
    height: var(--header-height);
    padding: 0 2rem;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    font-size: 1.2rem;
}

.chat-header h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    scroll-behavior: smooth;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 0 1rem;
    max-width: 600px;
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.welcome-message h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.welcome-message > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: var(--transition-fast);
    text-align: left;
    cursor: default;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.message.assistant .message-avatar {
    background: var(--primary-dark);
    color: white;
    border-color: transparent;
}

.message-content {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.message.user .message-content {
    background: var(--bg-message-user);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    max-width: 80%;
    margin-left: auto; /* Push to right */
}

/* Tool Calls Styling */
.tool-call {
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
}

.tool-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.tool-call-header:hover {
    background: var(--bg-card-hover);
}

.tool-call.expanded .tool-call-header {
    border-bottom-color: var(--border-color);
}

.tool-call-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-call-toggle {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.tool-call.expanded .tool-call-toggle {
    transform: rotate(180deg);
}

.tool-call-body {
    background: var(--bg-darker);
    padding: 0;
    display: none;
}

.tool-call.expanded .tool-call-body {
    display: block;
}

.tool-call-section {
    border-bottom: 1px solid var(--border-color);
}

.tool-call-section:last-child {
    border-bottom: none;
}

.tool-call-section h4 {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.tool-call-section pre {
    margin: 0;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.8rem;
    max-height: 300px;
}

/* Chat Input */
.chat-input-container {
    padding: 0 2rem 2rem;
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 20;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), var(--shadow-lg);
}

.upload-btn {
    background: var(--bg-card-hover);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.upload-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary-light);
    border-color: var(--border-light);
}

#chatInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
    padding: 0.25rem 0;
}

#chatInput::placeholder {
    color: var(--text-muted);
}

.send-btn, .stop-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.stop-btn {
    background: var(--danger);
    display: flex; /* Default hidden is controlled by JS inline style */
}

.stop-btn:hover {
    background: #dc2626; /* Red 600 */
}

.input-hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    opacity: 0.6;
}

.input-hints span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Timeline & Code Blocks */
.tool-calls-timeline {
    position: relative;
    margin: 1rem 0;
}

.content-text {
    line-height: 1.7;
    font-size: 0.95rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text pre {
    background: #0d0d0d; /* Darker than bg-darker */
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-text code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.content-text :not(pre) > code {
    background: var(--bg-card-hover);
    color: var(--primary-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

.content-text ul, .content-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-text li {
    margin-bottom: 0.25rem;
}

.content-text h1, .content-text h2, .content-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-call-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
}

/* Side Panel */
.side-panel {
    width: 400px;
    background: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
}

.side-panel.open {
    display: flex;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    font-size: 1.25rem;
}

.panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.panel-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* File Browser */
.file-browser {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-path input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    outline: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.file-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    min-width: 0; /* Prevent overflow */
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.file-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.file-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.file-item i {
    color: var(--primary);
}

.file-item.folder i {
    color: var(--accent);
}

.file-item-name {
    flex: 1;
    font-size: 0.9rem;
}

.file-item-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Todo List */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.todo-item.completed .todo-checkbox {
    background: var(--secondary);
    border-color: var(--secondary);
}

.todo-checkbox i {
    font-size: 0.7rem;
    color: white;
    opacity: 0;
}

.todo-item.completed .todo-checkbox i {
    opacity: 1;
}

.todo-title {
    flex: 1;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
}

.todo-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.todo-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.todo-status.in_progress {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.todo-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .side-panel {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 200;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 200;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .side-panel {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Avatar Gallery */
.avatar-gallery-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.avatar-option {
    aspect-ratio: 1;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-fast);
    padding: 0.25rem;
}

.avatar-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-secondary {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Toast Notification */
.toast-success {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 1rem); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -1rem); }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}
