body {

    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* p{
    font-size: 1.2rem !important;
} */

.swal2-popup {
    width: 80% !important; /* Larghezza 80% dello schermo */
    max-width: 950px; /* Limita la larghezza massima */
}
.swal2-popup p{
    text-align: left;
    font-size: 14px;

}
.swal2-popup h5{
    text-align: left;
    color: #7b99ab;
    font-size: 16px;

}

.swal2-confirm:focus-visible {
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0%);
}

/* Contenitore della chat */
.chat-container {
    width: 100%;
    max-width: 850px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Box messaggi */
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Stile messaggi */
.txt-message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Messaggi dell'utente */
.txt-user {
    background: #7b99ab;  
    color: white;
    align-self: flex-end;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5) !important;
}

/* Messaggi dell'Assistant */
.txt-gpt {
    background: rgba(90,74,67, .08); 
    color: #5a4943; 
    align-self: flex-start;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;

}

/* Input e pulsante */
.input-group {
    padding: 10px;
    background: white;
    border-top: 2px solid #5a4943; 
}

.input-group input {
    border: 1px solid #5a4943;
    border-radius: 8px;
}

.input-group button {
    background: #bfa745;
    border: none;
    color: white;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.input-group button:hover {
    background: #5a4943; /* Viola più chiaro */
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 7px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: #F2F6F2; 
    border-radius: 25px;
}

::-webkit-scrollbar-thumb {
    background: #5a4943;      
    border-radius: 25px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a4943;
}

.bg-primary{
    background-color: #7b99ab !important;
}

.text-color1{
color: #8f8f8f;
}

.hide{
    display: none;
}

div.message.gpt,
div.message.user{
display: flex;
flex-direction:column;
}

div.message.gpt svg,
div.message.user svg{
    padding: 16px 0;
    margin: 10px;
}

div.message.gpt svg path,
div.message.user svg path{
    fill: #5a4943;
}

div.message.user{
    flex-direction: row-reverse;
    justify-content: flex-start;
}
.logo-expertirze{
    max-width: 180px;
    height: auto;
}

.form-control:focus{
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25) !important;
    border-color: #5a4943;
}
.avatar{
    border: 2px solid #7b99ab;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25) !important;
}
div.message.gpt .avatar,
div.message.user .avatar{
    margin: 15px 10px 0 10px;
}

/* Animazione di apparizione messaggi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
