:root {
    --background-color: #0a0d1c;
    --text-color: #e2e8ff;
    --message-bg-user: #4338ca;
    --message-bg-assistant: rgba(30, 41, 59, 0.8);
    --message-text-assistant: #e2e8ff;
    --input-bg: rgba(30, 41, 59, 0.6);
    --border-color: #374151;
    --shadow-color: rgba(99, 102, 241, 0.2);
    --accent-color: #60a5fa;
    --accent-color-rgb: 96, 165, 250;
    --accent-color-hover: #3b82f6;
    --message-text-user: #ffffff;
    --text-secondary: #94a3b8;
    --text-secondary-light: #93c5fd;
    --background-secondary: #2d2d2d;
    --accent-color-darker: #444444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--background-color);
}

.chat-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.agent-status {
    display: flex;
    flex-direction: column;
}

.agent-status h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.status-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.online::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #34D399;
    border-radius: 50%;
}

.powered-by {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.powered-by span {
    color: #818CF8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    z-index: 10;
}

.support-button {
    background-color: rgba(129, 140, 248, 0.2);
    color: #e2e8ff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: max-content;
}

.support-button:hover {
    background-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.support-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.dashboard-button {
    background-color: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.dashboard-button:hover {
    background-color: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.4);
}

.backoffice-button {
    background-color: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.backoffice-button:hover {
    background-color: rgba(52, 211, 153, 0.3);
    border-color: rgba(52, 211, 153, 0.4);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
}

.message-content {
    flex: 1;
}

.message-content a {
    color: #818cf8;
    text-decoration: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: all 0.2s ease;
    padding: 0 2px;
}

.message-content a:hover {
    color: #a5b4fc;
    border-bottom-color: #a5b4fc;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 3px;
}

.message-content a:active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.message-content {
    padding: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.message-content p {
    margin: 0 0 1em 0;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
    margin: 1.5em 0 0.5em 0;
    color: var(--text-color);
    font-weight: 600;
}

.message-content h1 { font-size: 1.5em; }
.message-content h2 { font-size: 1.3em; }
.message-content h3 { font-size: 1.1em; }
.message-content h4 { font-size: 1em; }

.message-content ul,
.message-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.message-content li {
    margin: 0.5em 0;
}

.message-content code {
    background: var(--background-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: var(--background-secondary);
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.message-content a {
    color: #8b5cf6;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: border-color 0.2s;
}

.message-content a:hover {
    border-color: #8b5cf6;
}

.message-content blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 3px solid var(--accent-color);
    color: var(--text-secondary);
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.message-content th,
.message-content td {
    padding: 0.5em;
    border: 1px solid var(--border-color);
    text-align: left;
}

.message-content th {
    background: var(--accent-color);
    font-weight: 600;
}

.message-content tr:nth-child(even) {
    background: var(--background-secondary);
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.welcome-features span {
    background: rgba(129, 140, 248, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.suggestions-container {
    padding: 20px;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.suggestions-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.suggestion-category {
    background: var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.category-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-button {
    background: var(--background-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.4;
}

.suggestion-button:hover {
    background: var(--accent-color);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.suggestion-button:active {
    background: var(--accent-color-darker);
    transform: translateX(2px);
}

.chat-input {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-top: 1px solid var(--border-color);
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

#messageInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem;
}

#messageInput::placeholder {
    color: var(--text-secondary);
}

#sendButton {
    background: none;
    border: none;
    color: #818CF8;
    cursor: pointer;
    padding: 0.5rem;
}

#sendButton:hover {
    color: #6366F1;
}

.message-timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        width: 100vw;
    }

    .message {
        max-width: 90%;
    }

    .agent-status h1 {
        font-size: 1.1rem;
    }
}

.login-container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-header .agent-avatar {
    margin-top: -100px;
    margin-bottom: 1rem;
    position: relative;
    width: 100px;
    height: 100px;
}

.login-header .agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.login-header .life-halo {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(67,56,202,0.2));
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-button {
    padding: 0.8rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #4338ca, #818cf8);
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(150%);
    animation: slideIn 0.5s forwards;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(45deg, #dc3545, #f72585);
}

.notification.info {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
}

@keyframes slideIn {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(150%);
        opacity: 0;
    }
}

/* Animation de chargement */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Animation de shake pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Animation de pulse pour les boutons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Animation de fade pour les messages */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Animation de transition pour les pages */
.page-transition {
    opacity: 0;
    animation: pageTransition 0.3s ease forwards;
}

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

/* Suggestions */
.suggestions-container {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.suggestions-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.suggestions-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.suggestions-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.suggestion-chip {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.suggestion-chip:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.suggestion-chip:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Groupes de couleurs pour les suggestions */
.suggestion-chip[data-message*="ventes"],
.suggestion-chip[data-message*="CA"] {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.3);
}

.suggestion-chip[data-message*="stock"],
.suggestion-chip[data-message*="produits"] {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.3);
}

.suggestion-chip[data-message*="caisse"],
.suggestion-chip[data-message*="transactions"] {
    background: rgba(147, 197, 253, 0.2);
    border-color: rgba(147, 197, 253, 0.3);
}

/* Style spécial pour le message d'accueil */
.welcome-message {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(52, 211, 153, 0.1)) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 6px 10px !important;
}

.welcome-header {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    margin-bottom: 4px;
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-features span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.welcome-features span:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.welcome-message .message-timestamp {
    margin-top: 4px;
    font-size: 0.7em;
    opacity: 0.4;
}

/* Animation subtile pour le message d'accueil */
@keyframes welcomeGlow {
    0% { border-color: rgba(96, 165, 250, 0.25); }
    50% { border-color: rgba(52, 211, 153, 0.3); }
    100% { border-color: rgba(96, 165, 250, 0.25); }
}

.welcome-message {
    animation: welcomeGlow 4s infinite ease-in-out;
}

/* Styles pour le formatage des messages */
.highlight-important {
    color: #f43f5e;
    font-weight: bold;
}

.highlight-emphasis {
    color: #8b5cf6;
    font-style: italic;
}

.highlight-yellow {
    background-color: rgba(250, 204, 21, 0.2);
    padding: 0 3px;
    border-radius: 3px;
}

.highlight-blue {
    color: #3b82f6;
}

.highlight-red {
    color: #ef4444;
}

.inline-code {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
}

.code-block {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.fancy-quote {
    border-left: 4px solid #8b5cf6;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #6b7280;
}

.animated-list {
    list-style: none;
    padding-left: 1rem;
}

.animated-list li {
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.animated-list li:nth-child(1) { animation-delay: 0.1s; }
.animated-list li:nth-child(2) { animation-delay: 0.2s; }
.animated-list li:nth-child(3) { animation-delay: 0.3s; }
.animated-list li:nth-child(4) { animation-delay: 0.4s; }
.animated-list li:nth-child(5) { animation-delay: 0.5s; }

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

.number-neutral {
    color: #6b7280;
    font-family: 'Fira Code', monospace;
}

.number-high {
    color: #10b981;
    font-weight: bold;
    font-family: 'Fira Code', monospace;
}

.number-negative {
    color: #ef4444;
    font-weight: bold;
    font-family: 'Fira Code', monospace;
}

/* Styles pour les suggestions */
.suggestions-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.suggestion-button {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.suggestion-button:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.suggestion-button:active {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(0);
}

/* Styles pour le panneau de suggestions */
.suggestions-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 300px;
    max-height: 70vh;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.suggestions-panel.hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
}

.suggestions-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.close-suggestions {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-suggestions:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestions-container {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    padding: 15px;
    background: var(--background-color);
}

.suggestions-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.suggestion-category {
    background: var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.category-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-button {
    background: var(--background-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.4;
}

.suggestion-button:hover {
    background: var(--accent-color);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.suggestion-button:active {
    background: var(--accent-color-darker);
    transform: translateX(2px);
}

/* Style pour le bouton Suggestions */
.input-buttons {
    display: flex;
    gap: 10px;
    padding: 5px;
}

.action-button {
    background: var(--background-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.action-button:active {
    background: var(--accent-color-darker);
    transform: translateY(0);
}

.action-button i {
    font-size: 16px;
    color: var(--text-color);
}

/* Mise à jour du conteneur de chat */
.chat-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    align-items: flex-end;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    flex: 1;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    min-height: 40px;
    max-height: 150px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    resize: none;
    transition: all 0.3s ease;
}

#messageInput:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.send-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    background: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.send-button i {
    font-size: 16px;
}

.send-button:hover {
    background: var(--accent-color-darker);
    transform: translateY(-1px);
}

.send-button:active {
    transform: translateY(0);
}

/* Animation pour le bouton d'envoi */
@keyframes sendPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.send-button:not(:disabled):active {
    animation: sendPulse 0.2s ease;
}

/* État désactivé */
.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-darker);
}

.message + .message {
    margin-top: 20px;
}
