/*
body {
    font-family: 'Cera Pro Light', sans-serif;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    }
  */
    
    /* Αυτή είναι η σωστή θέση για τον κανόνα CSS */
    .chat-container {
      display: none;
    
    }
    

  .chat-container a,
.chatbot-message a,
.chat-body a,
.markdown-output a {
  color: #bf4552 !important;
  text-decoration: underline !important;
  display: inline !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  word-break: break-word !important;
  white-space: normal !important;
}
.chat-container a:hover,
.chatbot-message a:hover,
.markdown-output a:hover {
  color: #963640 !important;
}
  
  
    .chat-container {
    font-family: 'Cera Pro Light', sans-serif;
    
    
    margin: 0;
    width: 80%;
    background: white;
    height: 80%;
    border-radius: 20px;
    box-shadow: 0 0 24px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    }
    
    .chat-header {
      background-color: #bf4552;
      color: white;
      padding: 10px 12px;
      display: grid;
      grid-template-columns: 4.5rem 1fr 2rem; /* λογότυπο μικρότερο | τίτλος πλατύτερος | χώρος για το "—" */
      align-items: center;
      gap: 8px;
      min-height: 5.5rem;
      height: auto;
    }

.chat-logo {
  max-width: 4rem;   /* μειωμένο από 8.5rem */
  max-height: 2.6rem;
  background-color: #ffffff;
  border-radius: 4px;
  padding: 2px;
}
/*
    .chat-logo {
    width: 8rem;
    height: 4rem    ;
    margin-right: 10px;
    bottom: 0;
    }
*/
    .logo-eu {
        width: 25rem;
    height: 4rem    ;
    margin-right: 10px;
    margin-right: 3rem;
    }

    #chat-logo-image {
        /* width: 3.5rem; */
        height: auto;
        /* max-height: 1.5rem; */
        bottom: 0;
    }
    
    .chat-title {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 1rem;      /* λίγο μικρότερο ώστε να χωράει σε 2 γραμμές αντί για 4 */
      line-height: 1.2;
      margin: 0;
      min-width: 0;
    }

    .chat-title strong {
      white-space: normal;
      word-break: keep-all;   /* αποφυγή σπασίματος μέσα σε λέξεις */
    }
    
    .chat-subtitle {
      
    
    font-size: 0.72rem;
    line-height: 1.25;
    opacity: 0.9;
    margin: 0;             /* αποφυγή περιττών margin */
    }
    
    .chat-body {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    }

    #micBtn{
      margin-right: 1rem;
    }
    
    .vfrc-system-response {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0;
    align-items: flex-end; /* align image to bottom of text */
    }
    
    .vfrc-system-response > div {
    display: inline-block;
    background-color: rgba(0, 176, 189, 0.12);
    color: #28323a;
    border: 1px solid #00b0bd;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .vfrc-user-response {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0;
    }
    
    .vfrc-user-response > div {
    background-color: #bf4552;
    color: white;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 18px 18px 4px 18px;
    line-height: 1.4;
    /*max-width: 80%; */   /* <-- αφαιρέθηκε για να προσαρμόζεται στο κείμενο */
     width: fit-content;      /* <-- προσαρμόζεται ακριβώς στο κείμενο */
  word-wrap: break-word;   /* για ασφάλεια αν έχει πολύ μεγάλη λέξη */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    #chat-form {
    display: flex;
    padding: 12px;
    height: 3rem;
    }
    
    #user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 0.9rem !important;
    }

    #user-input::placeholder {
  color: gray;
  opacity: 1; /* για να μην είναι ξεθωριασμένο στο Chrome */
}

    
    #chat-form button {
    margin-left: 10px;
    padding: 0 12px;
    background-color: #bf4552;
    width: 4rem;
    font-size: x-large;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    }

    .typing-text {
  font-size: 14px;
  color: #555;
}

.dots span {
  opacity: 0;
  animation: blink 1.5s infinite;
}

.dots span:nth-child(1) {
  animation-delay: 0s;
}
.dots span:nth-child(2) {
  animation-delay: 0.3s;
}
.dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.chat-container a {
  color: #bf4552 !important;
  text-decoration: underline !important;
  cursor: pointer;
}

.chat-container a:hover {
  color: #963640 !important;
}

.quick-replies-grid .quick-reply-btn{
  margin-bottom: 4px;
}
.quick-replies-grid .quick-reply-btn .quick-reply-icon{
  margin-right: 8px;
}

@media (max-width: 600px) {
  .chat-container {
    width: 95% !important;
    max-width: 100% !important;
    height: 95% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
  }

  .chat-header {
    grid-template-columns: 3.5rem 1fr 1.75rem !important;
    align-items: center !important;
    text-align: center;
    height: auto !important;
    min-height: 5.25rem !important;
    padding: 0.5rem 0.65rem !important;
    gap: 0.5rem !important;
  }

  .chat-logo {
    width: 6.5rem !important;
    height: auto !important;
    margin: 0 !important;
  }

  .logo-eu {
    width: 7rem !important;
    height: auto !important;
    margin: 0.5rem 0 !important;
  }

  .chat-title {
    font-size: 0.9rem !important;
    width: auto !important;
  }

  .chat-subtitle {
    font-size: 0.62rem !important;
  }

  .chat-body {
    flex: 1 !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .chat-body::-webkit-scrollbar {
    display: none;
  }

  .vfrc-system-response > div,
  .vfrc-user-response > div {
    font-size: 0.9rem !important;
    max-width: 90% !important;
    padding: 0.75rem 0.5rem !important;
  }

  #chat-logo-image {
    width: 3.5rem !important;
    height: auto !important;
    max-height: 1.5rem !important;
    margin-right: 0.5rem !important;
    
    margin-left: -0.5rem !important;
  }

  #chat-form::-webkit-scrollbar {
    display: none;  /* Hide scrollbar on mobile */
  }

  #user-input {
    flex: 1 1 auto;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
    min-width: 0;
    
  }

  #chat-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    padding: 0.5rem !important;
    width: 100% !important;
    flex-wrap: nowrap;
    overflow-x: auto !important;  /* Allows scrolling if needed */
    box-sizing: border-box;
    margin-bottom: 0.5rem;
  }

  #chat-form button {
    flex: 0 0 auto;
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.1rem !important;
    padding: 0.25rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
