/* 
\css\ai_dialog.css
*/

    html, body {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
    }

    .page-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
        overflow: hidden;
    }

    #chatbox {
        flex: 1;
        overflow-y: auto;
        scroll-behavior: smooth;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .input-area {
        margin-top: 10px;
        display: flex;
        gap: 10px;
    }

/*Äußerer Container (bisnet_ai_dialog.php) */
main.ai_container_aussen {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 320px);
    max-height: calc(100vh - 290px);
    overflow-y: auto;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Iframe im äußeren Container */
main.ai_container_aussen iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: visible !important;
    flex: 1;
    min-height: 0;
}

/* Innerer Container im Iframe (init.php) */
div.ai_container_innen {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    box-sizing: border-box;
}



form {
    display: block !important;
}

input[type="text"] {
    display: block !important;
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

button {
    display: inline-block !important;
    padding: 8px 16px;
    cursor: pointer;
}




@keyframes highlight {
    0% { background-color: #ffeb3b; } /* Gelb */
    100% { background-color: inherit; } /* Zurück zur Standardfarbe */
}

main.ai_container_aussen iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
    min-height: 0;
}


.bubble {
    margin: 5px 0;
    font-family: Arial, sans-serif;
    padding: 8px;    
    text-align: left;    
    border-radius: 5px;
    max-width: 80%;
    word-wrap: break-word;
    flex-shrink: 0;
}
.bubble.user {
    background-color: #e6f3ff;
    align-self: flex-start;    
    margin-left: 20px; /* <<< Einrückung nach rechts */    
}
.bubble.ai {
    background-color: #f0f0f0;
    align-self: flex-start;
    font-style: italic;    
}
.bubble.system {    background-color: #f0f0f0;
    align-self: flex-start;
    font-style: italic; 
    
}



/* Styling für Access Key-Formular */
div.ai_container_innen form {
    max-width: 400px;
    margin: 0 auto;
}

#startButton {
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
}

#startButton:hover {
    background-color: #005fa3;
}

/* Input-Bereich */
.input-area {
    display: flex;
    align-items: stretch; /* statt center – sorgt für exakte Ausrichtung */
    gap: 10px;
    margin-top: 10px;
    padding: 0;
}

.input-area input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    height: 36px;
    line-height: 1.2;
    box-sizing: border-box;
}

.input-area button {
    padding: 0 16px;
    font-size: 16px;
    height: 36px;
    line-height: 1;
    box-sizing: border-box;
}



/* Responsive Anpassungen */
@media (max-width: 600px) {
    main.ai_container_aussen {
        padding: 10px;
        min-height: calc(100vh - 280px);
        max-height: calc(100vh - 260px);
    }

    div.ai_container_innen {
        padding: 10px;
    }

    .chatbox {
        flex: 1;
        overflow-y: auto;
        scroll-behavior: smooth;
        display: flex;
        flex-direction: column;        
    }
}




