/* Chat Container */
#chatgpt-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Nachrichten-Bereich */
#chatgpt-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
    min-height: 300px;
}

/* Einzelne Nachricht */
.chatgpt-message {
    margin-bottom: 15px;
}

/* Nachricht Text */
.message-text {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 80%;
    display: inline-block;
    word-wrap: break-word;
}

/* Benutzer Nachricht (rechts, blau) */
.chatgpt-message-user {
    text-align: right;
}

.chatgpt-message-user .message-text {
    background: #007cba;
    color: white;
}

/* AI Nachricht (links, grau) */
.chatgpt-message-assistant {
    text-align: left;
}

.chatgpt-message-assistant .message-text {
    background: #e9ecef;
    color: #333;
}

/* Fehler Nachricht (rot) */
.chatgpt-message-error {
    text-align: center;
}

.chatgpt-message-error .message-text {
    background: #dc3545;
    color: white;
}

/* Zeitstempel */
.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

/* Eingabe-Bereich */
#chatgpt-input-container {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    gap: 10px;
}

/* Eingabefeld */
#chatgpt-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

#chatgpt-input:focus {
    border-color: #007cba;
}

/* Senden Button */
#chatgpt-send {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

#chatgpt-send:hover {
    background: #005a87;
}

#chatgpt-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Scrollbar */
#chatgpt-messages::-webkit-scrollbar {
    width: 6px;
}

#chatgpt-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 768px) {
    .message-text {
        max-width: 90%;
    }
    
    #chatgpt-input {
        font-size: 16px;
    }
}