body {
  font-family: 'Roboto';
  font-size: 17px;
  line-height: 26px;
  color: #555;
  background-color: #fff;
}

.logo{
  max-width: 90%;
  width:400px;
}

.ax-prenav{
  background-color: #e50083;
}

.ax-prenav svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.ax-prenav .ax-lang button{
  background-color: #fff;
  color:#e50083;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e50083;
  border-radius: 20px;
}

.navbar-custom {
  font-size: 15px;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-weight: 500;
  border-bottom:1px solid #dee2e6;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: #555 !important;
  text-transform: uppercase;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .nav-link.active {
  color: #e50083 !important;
}
.navbar-custom .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}

h1,h2,h3,h4,h5,h6{
  font-family: 'Titillium Web';
  color: #e50083 !important;
  font-size: 40px;
  line-height: 46px;
  font-weight: 300;
  text-transform: none;
}

h2{
  margin: 0 0 25px 0;
  font-size: 26px;
  line-height: 36px;
}

h3{
  margin: 0 0 20px 0;
  font-size: 22px;
  line-height: 28px;
}


a{
  color: #e50083;
}

a:hover {
  color: #e50083;
  text-decoration: none;
}

input.form-control, textarea.form-control, select.form-select {
  border-radius: 18px;
}

input.form-control-lg{
  border-radius: 46px;
}

input[name="prompt"]::placeholder {
  color: #b0b8c1;
}

input[type="checkbox"] {
  border-color: #e50083;
}
input[type="checkbox"]:checked {
  background-color: #e50083;
  border-color: #e50083;
}


.uk-button {
  -webkit-appearance: none;
  margin: 0;
  border: none;
  overflow: visible;
  font: inherit;
  color: #e50083;
  text-transform: none;
  display: inline-block;
  box-sizing: border-box;
  background: #fff;
  vertical-align: middle;
  line-height: 46px;
  min-height: 46px;
  text-decoration: none;
  text-align: center;
  padding: 0 33px;
  border-radius: 46px;
  background-image: -webkit-linear-gradient(top, #ffffff, #ffffff);
  background-image: linear-gradient(to bottom, #ffffff, #ffffff);
  background-origin: border-box;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0), 1px 1px 1px rgba(0, 0, 0, 0);
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0);
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  border: 1px solid #e50083;
  cursor: pointer;
}

.uk-button:hover, .uk-button:focus {
  background-color: #e50083;
  color: #fff;
  outline: none;
  text-decoration: none;
  background-image: none;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0);
}

/* Thinking overlay */
#thinkingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#thinkingBox {
  background: #fff;
  border-radius: 16px;
  padding: 40px 60px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
#thinkingBox p {
  margin: 0;
  font-size: 18px;
  color: #555;
  font-weight: 400;
}
.thinking-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.thinking-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e50083;
  animation: thinking-bounce 1.2s infinite ease-in-out;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinking-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

footer {
  color:#fff;
  margin-top: 40px;
  padding: 20px 0;
  font-size: 14px;
  background-color: #7c7c7c;
  border-bottom: 7px solid #e50083;
}

.card {
  border-radius: 0;
  border-color: #dee2e6;
}

.card .card-header {
  border-bottom: none;
  color: #e50083;
}

.ax-domanda {
  min-height: 500px;
}

.credits {
  color:#e2df1f; 
}

.credits:hover {
  color:#e2df1f; 
}



/* CHAT */

#chat-container {
  transition: padding 0.4s ease, background-color 0.4s ease,
              border-radius 0.4s ease, box-shadow 0.4s ease;
}
/*.chat-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px 20px 20px 20px;
}*/

#chat-log {
  height: 400px;
  overflow-y: auto;
  /*border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;*/
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#chat-log.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#chat-disclaimer {
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, margin 0.4s ease-in-out;
}
#chat-disclaimer.is-accepted {
  opacity: 0.5;
}
#chat-disclaimer.is-accepted .card-footer {
  /*display: none;*/
}
#chat-disclaimer .card-body {
  font-size: 0.9rem;
  overflow-y: scroll;
  max-height:150px;
}
#chat-disclaimer .card-body::-webkit-scrollbar {
  width: 6px;
  background-color: #f0f0f0;
}
#chat-disclaimer .card-body::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
#chat-disclaimer .card-body {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}
#chat-disclaimer .card-footer {
  color: #555;
  font-size: 1rem;
}

#chat-disclaimer .form-check {
  font-size: 1.1rem;
}
#chat-disclaimer .form-check .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
}
#disclaimer-accept-btn {
  border-color: #e50083;
}
#disclaimer-accept-btn:checked {
  background-color: #e50083;
  border-color: #e50083;
}
#disclaimer-accept-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(229, 0, 131, 0.25);
}
#disclaimer-accept-btn:disabled,
#disclaimer-accept-btn:disabled ~ label {
  opacity: 1 !important;
}

@keyframes disclaimer-highlight {
  0%   { color: #555;                   text-shadow: none; }
  45%  { color: rgba(229, 0, 131, 1);   text-shadow: 0 0 20px rgba(229, 0, 131, 0.5); }
  55%  { color: rgba(229, 0, 131, 1);   text-shadow: 0 0 20px rgba(229, 0, 131, 0.5); }
  100% { color: #555;                   text-shadow: none; }
}
.disclaimer-highlight {
  animation: disclaimer-highlight 0.7s ease;
  border-radius: 4px;
}

#user-input:disabled,
#send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.message--user {
  align-self: flex-end;
  background-color: #edf0f4;
  color: #555;
  border-bottom-right-radius: 2px;
}
.message--model {
  max-width: 100%;
  align-self: flex-start;
  color: #333;
  border-radius: 0px;
}
.message--model p        { margin: 0 0 0.6em; }
.message--model p:last-child { margin-bottom: 0; }
.message--model ul,
.message--model ol       { margin: 0 0 0.6em 1.2em; padding: 0; }
.message--model li       { margin-bottom: 0.25em; }
.message--model strong,
.message--model b        { font-weight: 600; }
.message--model em,
.message--model i        { font-style: italic; }
.message--model code     { font-family: monospace; background: #f0f0f0; padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.message--model pre      { background: #f0f0f0; padding: 10px 14px; border-radius: 6px; overflow-x: auto; margin: 0 0 0.6em; }
.message--model pre code { background: none; padding: 0; }
.message--model h1, .message--model h2, .message--model h3 { font-size: 1em; font-weight: 600; margin: 0.6em 0 0.3em; color: inherit !important; }
.message--error {
  align-self: center;
  background-color: #f8d7da;
  color: #842029;
  font-size: 0.875rem;
}
.message--loading {
  max-width: 40%;
  align-self: center;
  background-color: #e50083;
  color: #fff;
}
.message--loading .thinking-dots {
  margin-bottom: 0;
}
.message--loading .thinking-dots span {
  background-color: #fff;
}

/* Admin: conversazione lead */
.lead-turn {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: .875rem;
}
.lead-turn--user {
  background: #e9ecef;
}
.lead-turn--model {
  background: #fff;
  border-left: 2px solid #e50083;
}

#find-out-more .card-body {
  background-color: #fafafa;
}