/* ── Göta MS Chatbot Styles ─────────────────────────────────────── */

:root {
    --gota-red:      #E30613;
    --gota-red-dark: #b50410;
    --gota-bg:       #ffffff;
    --gota-surface:  #f5f5f5;
    --gota-border:   #e0e0e0;
    --gota-text:     #1a1a1a;
    --gota-muted:    #666666;
    --gota-radius:   12px;
    --gota-shadow:   0 4px 24px rgba(0,0,0,0.10);
}

/* Wrapper */
#gota-chat-wrapper {
    font-family: 'Montserrat', sans-serif;
    max-width: 680px;
    margin: 0 auto;
}

/* Chattfönster */
#gota-chat-box {
    background: var(--gota-bg);
    border: 1px solid var(--gota-border);
    border-radius: var(--gota-radius);
    box-shadow: var(--gota-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
#gota-chat-header {
    background: var(--gota-red);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#gota-chat-header .chat-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

#gota-chat-header .chat-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#gota-chat-header .chat-subtitle {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

/* Meddelandeyta */
#gota-chat-messages {
    padding: 20px;
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Enskilt meddelande */
.gota-msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
    animation: gota-fadein 0.2s ease;
}

@keyframes gota-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gota-msg.bot  { align-self: flex-start; }
.gota-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.gota-msg .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gota-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gota-msg.user .avatar {
    background: var(--gota-surface);
    color: var(--gota-muted);
    border: 1px solid var(--gota-border);
}

.gota-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gota-text);
}

.gota-msg.bot .gota-bubble {
    background: var(--gota-surface);
    border-radius: 4px 16px 16px 16px;
}

.gota-msg.user .gota-bubble {
    background: var(--gota-red);
    color: #fff;
    border-radius: 16px 4px 16px 16px;
}

/* Tänker-animation */
.gota-typing .gota-bubble {
    padding: 12px 16px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gota-red);
    animation: gota-bounce 1.2s infinite ease-in-out;
}

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

@keyframes gota-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%           { transform: scale(1.0); opacity: 1.0; }
}

/* Inputfält */
#gota-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--gota-border);
    background: var(--gota-bg);
}

#gota-chat-input {
    flex: 1;
    border: 1px solid var(--gota-border);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gota-text);
    background: var(--gota-surface);
    outline: none;
    transition: border-color 0.15s;
    resize: none;
}

#gota-chat-input:focus {
    border-color: var(--gota-red);
    background: #fff;
}

#gota-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--gota-red);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

#gota-chat-send:hover  { background: var(--gota-red-dark); }
#gota-chat-send:active { transform: scale(0.93); }
#gota-chat-send:disabled { background: var(--gota-border); cursor: not-allowed; }

#gota-chat-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer-disclaimer */
#gota-chat-footer {
    text-align: center;
    font-size: 11px;
    color: var(--gota-muted);
    padding: 8px 16px 12px;
    border-top: 1px solid var(--gota-border);
    background: var(--gota-bg);
}

/* Scrollbar */
#gota-chat-messages::-webkit-scrollbar { width: 4px; }
#gota-chat-messages::-webkit-scrollbar-track { background: transparent; }
#gota-chat-messages::-webkit-scrollbar-thumb { background: var(--gota-border); border-radius: 2px; }

/* Responsiv */
@media (max-width: 480px) {
    #gota-chat-messages { max-height: 340px; }
    .gota-msg { max-width: 96%; }
}
