#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    font-family: sans-serif;
    z-index: 9999999999;
}

#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 0; /* Verberg tekst */
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10000;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#chatbot-toggle::before {
    content: "\1F4AC"; /* 💬 */
    font-size: 24px;
    display: block;
    text-align: center;
    line-height: 60px;
}

#chatbot-toggle:hover {
    background-color: #005f8d;
    transform: scale(1.05);
}

#chatbot-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

#chat-log {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
}

#chat-log p {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 95%;
    word-wrap: break-word;
}

#chat-log .user {
    align-self: flex-end;
    text-align: right;
}

#chat-log .bot {
    background-color: #c1c1c1;
    align-self: flex-start;
    text-align: left;
}

.chat-msg {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 95%;
    word-wrap: break-word;
}

.chat-msg-user {
    background-color: #0073aa;
    color: #fff;
    align-self: flex-end;
    text-align: right;
}

.chat-msg-bot {
    background-color: #f1f1f1;
    color: #000;
    align-self: flex-start;
    text-align: left;
}

#chat-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    gap: 5px;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

#chat-send {
    padding: 8px 12px;
    border: none;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.chat-msg a, .chat-log a {
    text-decoration: underline !important;
}

.chat-msg span {
    display: inline-block;
}

#typing-indicator span::after {
    content: '';
    display: inline-block;
    animation: dots .5s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}
