/* Styles pour le widget du chatbot */

/* Réinitialisation pour le chatbot */
.ssc-chatbot-container,
.ssc-chatbot-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === CONTENEUR PRINCIPAL === */
.ssc-chatbot-container {
    position: fixed;
    font-family: var(--ssc-font-family);
    font-size: var(--ssc-font-size-base);
    color: var(--ssc-text-primary);
    z-index: var(--ssc-z-index-widget);
    line-height: 1.4;
}

/* Positionnement du widget */
.ssc-chatbot-container.ssc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ssc-chatbot-container.ssc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ssc-chatbot-container.ssc-position-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* === BOUTON DE DÉCLENCHEMENT === */
.ssc-chat-trigger {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--ssc-primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--ssc-shadow);
    transition: var(--ssc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ssc-text-white);
    font-size: 24px;
    overflow: hidden;
}

.ssc-chat-trigger:hover {
    background: var(--ssc-primary-dark);
    /* Use brand dark color instead of hardcoded orange */
    transform: scale(1.05);
    box-shadow: var(--ssc-shadow-large);
}

.ssc-chat-trigger:active {
    transform: scale(0.95);
}

/* Notification badge */
.ssc-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--ssc-error-color);
    border-radius: 50%;
    color: var(--ssc-text-white);
    font-size: var(--ssc-font-size-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: ssc-pulse 2s infinite;
}

@keyframes ssc-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* === FENÊTRE DE CHAT === */
.ssc-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--ssc-bg-primary);
    border-radius: var(--ssc-border-radius);
    box-shadow: var(--ssc-shadow-large);
    display: flex;
    flex-direction: column;
    /* overflow: hidden; removed */
}

@keyframes ssc-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === EN-TÊTE DU CHAT === */
.ssc-chat-header {
    background: var(--ssc-primary-color);
    color: var(--ssc-text-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--ssc-border-radius) var(--ssc-border-radius) 0 0;
}

.ssc-chat-title {
    font-weight: 600;
    font-size: var(--ssc-font-size-large);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssc-chat-status {
    font-size: var(--ssc-font-size-small);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ssc-status-indicator {
    width: 8px;
    height: 8px;
    background: var(--ssc-success-color);
    border-radius: 50%;
    animation: ssc-blink 2s infinite;
}

@keyframes ssc-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.ssc-chat-controls {
    display: flex;
    gap: 8px;
}

.ssc-minimize-btn,
.ssc-close-btn {
    background: transparent;
    border: none;
    color: var(--ssc-text-white);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ssc-transition-fast);
    font-size: 14px;
}

.ssc-minimize-btn:hover,
.ssc-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}