#ChatBot .errorBox {
    max-width: 600px;
    margin: 0 auto 1em auto;
    padding: 0.75em;
    background-color: #ffe0e0;
    border: 1px solid #cc0000;
    color: #800000;
    font-weight: bold;
    display: none;
    /* Standard: unsichtbar */
}

#ChatBot .errorBox.active {
    display: block;
}

#ChatBot #log {
    border: 1px solid #ccc;
    padding: 1em;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 1em;
    background: #fff;
}

#ChatBot .msg {
    margin: 0.5em 0;
    padding: 0.6em 1em;
    border-radius: 7px;
    box-sizing: border-box;
    white-space: pre-wrap;
    display: block;
    width: fit-content;
    max-width: 80%;
}

#ChatBot .msg.user {
    background-color: #d9ecff;
    color: #004a99;
    margin-left: 20%;
    margin-right: 0;
}

#ChatBot .msg.assistant {
    background-color: #f2f2f2;
    color: #333;
    margin-left: 0;
    margin-right: 20%;
}

#ChatBot .msg.system {
    font-size: smaller;
    background-color: #f9f9f9;
    color: #777;
    margin-left: 0;
    margin-right: 20%;
}


#ChatBot .msg.tmp {
    font-size: 0.8em;
    opacity: 0.6;
}

#ChatBot textarea#msg {
    width: 100%;
    font-size: 1em;
    padding: 0.5em;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
}


#ChatBot #sendButton {
    border-radius: 4px;
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5em 1em;
}

#ChatBot #sendButton:hover {
    background-color: #004a99;
}

#ChatBot button {
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #0066cc;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 0.4em 0.8em;
}

#ChatBot button:hover {
    background-color: #e8e8e8;
    border-color: #999;
}

#ChatBot .chat-click {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

#ChatBot .chat-click:hover {
    background-color: #eef6ff;
}

#ChatBot .chat-click:focus {
    outline: 2px solid #66aaff;
}

#ChatBot .chat-click.buttonlike {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    background-color: #e0eaff;
    border: 1px solid #99c;
    display: inline-block;
}


/* ChatBottom - kleiner Abstand nach oben, sonst clean */
#ChatBot #ChatBottom {
    margin-top: 1em;
    padding: 0;
    border: none;
}

#ChatBot #ChatBottom #status {
    margin: 0;
    padding: 0;
}

/* Debug-Status Anzeige */
#ChatBot #ChatBottom #debug {
    margin: 0;
    padding: 0;
}


/* Debug-Messages #ChatBot #DebugMessages */

#ChatBot #DebugMessages {
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff;
    margin-top: 5px;
}

#ChatBot #DebugMessages .debug-message {
    margin: 8px 0;
    padding: 6px 8px;
    background: #f8f9fa;
    border-left: 3px solid #0066cc;
    border-radius: 3px;
    font-size: 12px;
}

#ChatBot #DebugMessages .debug-title {
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

#ChatBot #DebugMessages .debug-content {
    font-family: 'Courier New', monospace;
    line-height: 1.3;
    color: #333;
}


/* Debug Panel Styling - unter #ChatBot #ChatBottom #debug */
#ChatBot #ChatBottom #debug .SlashDebug {
    padding: 3px;
    margin: 0px 0;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#ChatBot #ChatBottom #debug .SlashDebug .chat-click {
    background-color: #6c757d;  
    color: white;
    border: 1px solid #5a6268;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

#ChatBot #ChatBottom #debug .SlashDebug .chat-click:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#ChatBot #ChatBottom #debug .SlashDebug .chat-click:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Context-Bereich */
#ChatBot #Context {
    margin: 0;
    padding: 0;
}

#ChatBot #Context .ContextButtons {
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#ChatBot #Context .ContextButtons button {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

#ChatBot #Context .ContextButtons button:hover {
    background-color: #e8e8e8;
    border-color: #999;
}