/* chat-style.css - SalonAgency AI Chat Widget */

/* Widget container */
.sa-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Chat button */
.sa-chat-button {
    width: 56px;
    height: 56px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sa-chat-button i {
    font-size: 22px;
    color: #ec4899;
}

.sa-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ec4899;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
}

/* Chat window */
.sa-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 420px;
    height: 560px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

/* Chat header */
.sa-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sa-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-chat-header-info i {
    font-size: 22px;
    color: #ec4899;
}

.sa-chat-header-info strong {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
}

.sa-chat-header-info small {
    color: #64748b;
    font-size: 11px;
}

.sa-chat-header-actions {
    display: flex;
    gap: 16px;
}

.sa-chat-header-actions i {
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}

.sa-chat-header-actions i:hover {
    color: #ec4899;
}

/* Chat messages area */
.sa-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

/* Message bubbles - CORRECTE KLEUREN */
.sa-chat-message {
    max-width: 90%;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* USER berichten - roze achtergrond, witte tekst */
.sa-chat-message.user {
    background: #ec4899;
    color: #ffffff;
    align-self: flex-end;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
}

/* BOT berichten - WITTE achtergrond, DONKERE tekst */
.sa-chat-message.bot {
    background: #ffffff;
    color: #1e293b;
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sa-chat-message.bot p {
    margin: 0 0 12px 0;
    color: #1e293b;
}

.sa-chat-message.bot p:last-child {
    margin-bottom: 0;
}

.sa-chat-message.bot strong {
    color: #ec4899;
    font-weight: 600;
}

.sa-chat-message.bot ul {
    margin: 8px 0;
    padding-left: 20px;
}

.sa-chat-message.bot li {
    margin: 4px 0;
    color: #1e293b;
}

/* Typing indicator */
.sa-chat-message.bot.typing {
    background: #ffffff;
    padding: 14px 18px;
}

.sa-chat-message.bot.typing span {
    animation: typing 1.4s infinite;
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    margin: 0 2px;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* Suggestions */
.sa-chat-suggestions {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.sa-chat-suggestion {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.sa-chat-suggestion:hover {
    background: #ec4899;
    color: #ffffff;
}

/* Winst Scan Banner */
.sa-winst-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sa-winst-banner-icon {
    width: 36px;
    height: 36px;
    background: rgba(236, 72, 153, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-winst-banner-icon i {
    font-size: 18px;
    color: #ec4899;
}

.sa-winst-banner-content {
    flex: 1;
}

.sa-winst-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.sa-winst-banner-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.sa-winst-banner-button {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.sa-winst-banner-button:hover {
    background: #ec4899;
}

/* Email capture */
.sa-chat-email-capture {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.sa-chat-email-capture input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
}

.sa-chat-email-capture button {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #1a1a2e;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
}

.sa-chat-email-capture button:hover {
    background: #ec4899;
}

/* Chat input */
.sa-chat-input {
    display: flex;
    padding: 16px;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
}

.sa-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
}

.sa-chat-input input:focus {
    outline: none;
    border-color: #ec4899;
}

.sa-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #1a1a2e;
    color: #ffffff;
    cursor: pointer;
}

.sa-chat-input button:hover {
    background: #ec4899;
}

/* ======================================== */
/* DARK MODE */
/* ======================================== */
@media (prefers-color-scheme: dark) {
    .sa-chat-window {
        background: #1e1e2e;
        border-color: #2d2d3d;
    }
    
    .sa-chat-header {
        background: #1e1e2e;
        border-bottom-color: #2d2d3d;
    }
    
    .sa-chat-header-info strong {
        color: #ffffff;
    }
    
    .sa-chat-messages {
        background: #181825;
    }
    
    /* BOT berichten in dark mode - donkere achtergrond, lichte tekst */
    .sa-chat-message.bot {
        background: #2d2d3d;
        color: #e2e8f0;
        border-color: #3d3d4d;
    }
    
    .sa-chat-message.bot p {
        color: #e2e8f0;
    }
    
    .sa-chat-message.bot li {
        color: #e2e8f0;
    }
    
    .sa-chat-suggestions {
        background: #181825;
        border-top-color: #2d2d3d;
    }
    
    .sa-chat-suggestion {
        background: #2d2d3d;
        color: #e2e8f0;
        border-color: #3d3d4d;
    }
    
    .sa-chat-email-capture {
        background: #181825;
        border-top-color: #2d2d3d;
    }
    
    .sa-chat-email-capture input {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e2e8f0;
    }
    
    .sa-chat-input {
        background: #1e1e2e;
        border-top-color: #2d2d3d;
    }
    
    .sa-chat-input input {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e2e8f0;
    }
    
    .sa-winst-banner {
        background: linear-gradient(135deg, #0f0f1a, #0a0a14);
        border-top-color: #2d2d3d;
        border-bottom-color: #2d2d3d;
    }
}

/* ======================================== */
/* MOBIEL */
/* ======================================== */
@media (max-width: 768px) {
    .sa-chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        position: fixed;
    }
    
    .sa-chat-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 10001;
    }
    
    .sa-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10000;
    }
}