body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    background: #2e2e2e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Custom scrollbar */
#chat-box::-webkit-scrollbar {
    width: 8px;
}
#chat-box::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}
#chat-box::-webkit-scrollbar-track {
    background-color: transparent;
}

.input-area {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background-color: #444;
    color: white;
}

button {
    background-color: #0078D7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

button:hover {
    background-color: #005ea3;
}

.user-message,
.bot-message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}

.user-message {
    background-color: #0078D7;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.bot-message {
    background-color: #3a3a3a;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.typing-indicator {
    display: inline-block;
    background-color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 5px 0;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #bbb;
    border-radius: 50%;
    margin-right: 4px;
    opacity: 0.2;
    animation: pulse 1s infinite alternate;
}

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

#alternative-access {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

#alternative-access button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#alternative-access button:hover {
    background-color: #666;
}

@keyframes pulse {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* Mobile-Optimierung */
@media screen and (max-width: 600px) {
    .chat-container {
        padding: 10px;
    }

    #chat-box {
        height: 300px;
    }

    input[type="text"] {
        padding: 8px;
        font-size: 13px;
    }

    button {
        padding: 8px 12px;
        font-size: 13px;
    }
}
