@font-face {
    font-family: 'Roboto';
    src: url('/chatbot/assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Stili per la chat */
#chatContainer {
    width: 100%;
    height: 358px;
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);*/
    border-radius: 2px;
    overflow: hidden;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

#chatWindow {
    width: 100%;
    height: 300px;
    max-height: 300px;
    border: 0px solid #ccc;
    padding: 10px;
    overflow-y: auto;
    background-color: #fcfcfc;
    border-radius: 0px;
    border-top: 2px solid #eeeeee;
}

#chatWindow::-webkit-scrollbar {
	height: 8px;
	width: 10px;
}

#chatWindow::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 0px;
}

#chatWindow::-webkit-scrollbar-thumb {
	background: #2183c3;
	border-radius: 0px;
}

#chatWindow::-webkit-scrollbar-thumb:hover {
	background: #2183c3;
}

#userInputContainer {
    display: flex;
    padding: 10px;
    background-color: #eee;
    border-top: 0px solid #ccc;
}

#userInput {
    width: calc(100% - 60px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0px 0px 4px;
    height: 38px;
}
#sendBtn {
font-size: 14px;
font-weight: 500;
letter-spacing: 0;
line-height: 0.4;
background-color: #0677BD;
margin-left: 4px;
width: 100%;
height: 100%;
color: #ffffff;
}

.message {
    margin: 10px 0;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: -2px!important
}

.user {
    color: #666666;
    text-align: right;
    background-color: #f2f2f2;
    display: inline-block;
    padding: 9px;
    border-radius: 50px;
    max-width: 99%;
    word-wrap: break-word;
}

.dp {
    color: #000099!important;
    text-align: right;
    background-color: #e3f4f2;
    display: inline-block;
    padding: 2px 6px 4px 7px;
    border-radius: 50px;
    max-width: 99%;
    word-wrap: break-word;
    cursor: pointer;
    margin-bottom: 6px;
    font-size: 13px
}

.dpchat {
    color: #666666;
    text-align: right;
    background-color: #e3f4f2;
    display: inline-block;
    padding: 2px 6px 4px 7px;
    border-radius: 50px;
    max-width: 99%;
    word-wrap: break-word;
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 14px
}

.dporange {
	background-color: #eea236!important;
	color: #ffffff!important;
	margin: 0px!important;
}

.dphidden {
	display: none;
}

td:hover .dphidden {
	display: inline-block;
}

tr:hover .dphidden {
	display: inline-block;
}
  
.bot {
    color: #000;
    text-align: left;
    padding: 2px;
    border-radius: 10px;
    max-width: 100%;
    line-height: 25px;
    display: flex;
    align-items: center;
}

/* Loader */
.loaderchatbot {
    width: 60px;
    height: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    --_g: no-repeat radial-gradient(circle closest-side, #999 90%, #0000);
    background:
      var(--_g) 0% 50%,
      var(--_g) 50% 50%,
      var(--_g) 100% 50%;
    background-size: calc(100% / 3) 50%;
    animation: l3 1s infinite linear;
    opacity: 1;
    transition: opacity 0.5s ease;
}

@keyframes l3 {
    20% {background-position: 0% 0%, 50% 50%, 100% 50%}
    40% {background-position: 0% 100%, 50% 0%, 100% 50%}
    60% {background-position: 0% 50%, 50% 100%, 100% 0%}
    80% {background-position: 0% 50%, 50% 50%, 100% 100%}
}

/* Stile per l'icona dell'utente */
.userIcon {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    padding: 0px;
    flex-shrink: 0;

}

.userIcon img {
    width: 40px;
    height: 40px;
}