/* ============================================
   CHATBOT FULL PAGE - VERSION FINALE CORRIGÉE
   Sans espace vide + Flèche d'ouverture ✅
   ============================================ */

:root {
    --chatbot-text: #1a202c;
    --chatbot-text-secondary: #64748b;
    --chatbot-border: #e2e8f0;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --neon-blue: #667eea;
    --neon-purple: #764ba2;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --sidebar-width: 280px;
}

/* ============================================
   PARTICLES BACKGROUND (DERRIÈRE TOUT)
   ============================================ */
.particles-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 50%, #f1f5f9 100%);
}

/* ============================================
   LAYOUT (Transparents pour voir particules)
   ============================================ */
body {
    background: transparent !important;
}

.layout-wrapper {
    background: transparent !important;
}

/* ============================================
   CHATBOT MAIN CONTENT
   ============================================ */
.chatbot-main-content {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.chatbot-top-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--chatbot-border) !important;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 15;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 13px;
    color: #166534;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.header-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    border-radius: var(--radius-sm);
    color: var(--chatbot-text);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-action-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CHAT LAYOUT
   ============================================ */
.chat-layout {
    display: flex;
    height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

/* ============================================
   CONVERSATIONS SIDEBAR - CORRECTION ESPACE VIDE ✅
   ============================================ */
.conversations-sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--chatbot-border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    z-index: 10;
    flex-shrink: 0;
    position: relative;
}

/* ✅ ÉTAT FERMÉ (COLLAPSED) - POSITION ABSOLUTE POUR NE PLUS PRENDRE DE PLACE */
.conversations-sidebar.collapsed {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--chatbot-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.conversations-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--chatbot-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversations-header h3 i {
    color: var(--neon-purple);
}

/* ✅ BOUTON TOGGLE (Dans la sidebar) */
.conversations-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    border-radius: var(--radius-sm);
    color: var(--chatbot-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.conversations-toggle:hover {
    background: #e2e8f0;
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.conversations-toggle:active {
    transform: scale(0.95);
}

.conversations-toggle i {
    transition: transform var(--transition-smooth);
}

/* ✅ BOUTON FLÈCHE D'OUVERTURE (Quand sidebar fermée) */
.sidebar-reopen-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--chatbot-border);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--neon-purple);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
}

/* ✅ Afficher uniquement quand sidebar fermée */
.conversations-sidebar.collapsed ~ .chat-messages-area .sidebar-reopen-btn,
body:has(.conversations-sidebar.collapsed) .sidebar-reopen-btn {
    opacity: 1;
    pointer-events: all;
}

.sidebar-reopen-btn:hover {
    background: rgba(237, 233, 254, 0.95);
    border-color: var(--neon-purple);
    width: 50px;
    box-shadow: 4px 0 16px rgba(118, 75, 162, 0.2);
}

.sidebar-reopen-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.sidebar-reopen-btn i {
    transition: transform var(--transition-fast);
}

.sidebar-reopen-btn:hover i {
    transform: translateX(4px);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: var(--chatbot-border);
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.conversation-group {
    margin-bottom: 24px;
    animation: fade-in-up 0.4s ease-out backwards;
}

.conversation-group:nth-child(1) { animation-delay: 0.05s; }
.conversation-group:nth-child(2) { animation-delay: 0.1s; }
.conversation-group:nth-child(3) { animation-delay: 0.15s; }

.group-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--chatbot-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 8px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.conversation-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--neon-purple);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.conversation-item:hover {
    background: rgba(241, 245, 249, 0.8);
    transform: translateX(4px);
}

.conversation-item:hover::before {
    transform: scaleY(1);
}

.conversation-item.active {
    background: #ede9fe;
}

.conversation-item.active::before {
    transform: scaleY(1);
}

.conversation-item i {
    color: var(--chatbot-text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.conversation-item:hover i,
.conversation-item.active i {
    color: var(--neon-purple);
}

.conversation-title {
    flex: 1;
    font-size: 14px;
    color: var(--chatbot-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.conversation-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--chatbot-text-secondary);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.conversation-item:hover .conversation-delete {
    opacity: 1;
}

.conversation-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.2);
}

/* ============================================
   CHAT MESSAGES AREA - PLEINE LARGEUR AUTOMATIQUE ✅
   ============================================ */
.chat-messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    min-width: 0;
    position: relative;
    transition: all var(--transition-smooth);
    /* ✅ IMPORTANT : Prendre tout l'espace disponible */
    width: 100%;
}

.chatbot-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    scroll-behavior: smooth;
}

.chatbot-messages-wrapper::-webkit-scrollbar {
    width: 10px;
}

.chatbot-messages-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages-wrapper::-webkit-scrollbar-thumb {
    background: var(--chatbot-border);
    border-radius: 5px;
    transition: background var(--transition-fast);
}

.chatbot-messages-wrapper::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.chatbot-messages-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100%;
    width: 100%;
    transition: max-width var(--transition-smooth), padding var(--transition-smooth);
}

/* ✅ Quand sidebar fermée : agrandir la zone de contenu */
.conversations-sidebar.collapsed ~ .chat-messages-area .chatbot-messages-content {
    max-width: 1400px;
    padding: 40px 80px;
}

/* ============================================
   WELCOME SCREEN - ESPACEMENT OPTIMISÉ ✅
   ============================================ */
.welcome-screen {
    text-align: center;
    padding: 20px;
    animation: fade-in-up 0.8s ease-out;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ✅ ROBOT 3D CONTAINER - MASQUÉ
   ============================================ */
.robot-3d-container-threejs {
    display: none !important;
}

.robot-3d-container {
    display: none !important;
}

/* ============================================
   WELCOME TITLE & SUBTITLE - REMONTÉ EN HAUT ✅
   ============================================ */
.welcome-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 0 !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    padding: 0 10px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--chatbot-text-secondary);
    margin-bottom: 40px;
    margin-top: 0 !important;
    padding: 0 10px;
    word-wrap: break-word;
}

/* ============================================
   WELCOME FEATURES
   ============================================ */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    padding: 0 10px;
    max-width: 100%;
}

.feature-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--chatbot-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: default;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--chatbot-text);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--chatbot-text-secondary);
    line-height: 1.5;
}

/* ============================================
   WELCOME SUGGESTIONS
   ============================================ */
.welcome-suggestions {
    margin-top: 30px;
    padding: 0 10px;
    max-width: 100%;
}

.suggestions-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--chatbot-text);
}

.welcome-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 100%;
}

.welcome-suggestion-btn {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--chatbot-border);
    border-radius: var(--radius-md);
    color: var(--chatbot-text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.welcome-suggestion-btn:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
    transform: translateX(5px);
}

.suggestion-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.suggestion-text {
    color: var(--chatbot-text-secondary);
    line-height: 1.4;
}

.welcome-suggestion-btn:hover .suggestion-text {
    color: var(--chatbot-text);
}

/* ============================================
   MESSAGES
   ============================================ */
.message {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    animation: message-slide-in 0.5s ease-out;
}

@keyframes message-slide-in {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.message.user-message {
    flex-direction: row-reverse;
    animation-name: message-slide-in-right;
}

@keyframes message-slide-in-right {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.message-avatar.bot-avatar {
    background: var(--gradient-primary);
}

.message-avatar.user-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-content {
    flex: 1;
    max-width: 100%;
}

.message-bubble {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--chatbot-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.message.bot-message .message-bubble {
    border-top-left-radius: 4px;
}

.message.user-message .message-bubble {
    background: rgba(237, 233, 254, 0.95);
    border-color: #c4b5fd;
    border-top-right-radius: 4px;
}

.message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--chatbot-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-text strong {
    color: var(--neon-blue);
    font-weight: 600;
}

.message-text em {
    color: var(--neon-purple);
    font-style: normal;
}

.message-text code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: var(--chatbot-text-secondary);
    margin-top: 8px;
    display: block;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-blue);
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--neon-purple);
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: #f093fb;
}

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ============================================
   INPUT AREA
   ============================================ */
.chatbot-input-area {
    padding: 20px 30px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--chatbot-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.input-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 32px;
}

.input-suggestion-chip {
    padding: 8px 16px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--chatbot-border);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-weight: 500;
}

.input-suggestion-chip:hover {
    background: #e0e7ff;
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 900px;
    margin: 0 auto;
    transition: max-width var(--transition-smooth);
}

/* ✅ Agrandir l'input quand sidebar fermée */
.conversations-sidebar.collapsed ~ .chat-messages-area .input-container {
    max-width: 1400px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.chatbot-input {
    width: 100%;
    min-height: 56px;
    max-height: 200px;
    padding: 16px 48px 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--chatbot-border);
    border-radius: 28px;
    color: var(--chatbot-text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: all var(--transition-fast);
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.chatbot-input::placeholder {
    color: var(--chatbot-text-secondary);
}

.chatbot-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), var(--shadow-md);
}

.input-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--chatbot-text-secondary);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper:hover .input-clear-btn,
.chatbot-input:focus + .input-clear-btn {
    opacity: 1;
}

.input-clear-btn:hover {
    color: var(--chatbot-text);
    transform: translateY(-50%) scale(1.2);
}

.chatbot-send-btn {
    width: 56px;
    height: 56px;
    border: none;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
    transition: max-width var(--transition-smooth);
}

/* ✅ Agrandir le footer quand sidebar fermée */
.conversations-sidebar.collapsed ~ .chat-messages-area .input-footer {
    max-width: 1400px;
}

.input-hint {
    font-size: 12px;
    color: var(--chatbot-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-hint i {
    color: #fbbf24;
}

.input-counter {
    font-size: 12px;
    color: var(--chatbot-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   CHART CONTAINERS
   ============================================ */
.chart-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--chatbot-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--chatbot-text);
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--chatbot-border);
    border-radius: var(--radius-sm);
    color: var(--chatbot-text);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chart-btn:hover {
    background: #e2e8f0;
    border-color: var(--neon-blue);
}

.chart-canvas-wrapper {
    position: relative;
    height: 400px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .welcome-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .conversations-sidebar.collapsed ~ .chat-messages-area .chatbot-messages-content {
        max-width: 1200px;
        padding: 40px 60px;
    }
    
    .conversations-sidebar.collapsed ~ .chat-messages-area .input-container,
    .conversations-sidebar.collapsed ~ .chat-messages-area .input-footer {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    /* ✅ SUR MOBILE, SIDEBAR EN OVERLAY */
    .conversations-sidebar {
        position: fixed;
        left: 0;
        top: 70px;
        height: calc(100vh - 70px);
        z-index: 100;
        transform: translateX(-100%);
    }
    
    .conversations-sidebar.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .conversations-sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar-reopen-btn {
        top: 150px;
        height: 60px;
        width: 32px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    .welcome-suggestion-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-input-area {
        padding: 16px 20px 20px;
    }
    
    .conversations-sidebar.collapsed ~ .chat-messages-area .chatbot-messages-content {
        max-width: 900px;
        padding: 40px 20px;
    }
    
    .conversations-sidebar.collapsed ~ .chat-messages-area .input-container,
    .conversations-sidebar.collapsed ~ .chat-messages-area .input-footer {
        max-width: 900px;
    }
}

@media (max-width: 480px) {
    .chatbot-messages-content {
        padding: 20px 16px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .sidebar-reopen-btn {
        width: 28px;
        height: 50px;
        font-size: 16px;
    }
}