/*
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: #007bff !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: #0056b3 !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: #266180;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center; /* vertically center items */
    justify-content: center; /* horizontally center items */
    height: 4rem;
    }

    .chat-logo {
    width: auto;       /* πλάτος ανάλογο του ύψους για να κρατάει αναλογίες */
    height: auto;      /* σταθερό ύψος ή άλλαξε σε auto για πλήρως responsive */
    max-width: 100%;   /* να μην ξεπερνάει το container */
    margin-right: 10px;
    display: inline-block; /* σιγουρεύει ότι η εικόνα στέκεται σωστά */
}
/*
    .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: 2rem;
        height: 2rem ;
        bottom: 0;
    }
    
    .chat-title {
       text-align: center;  /* κεντράρει όλα τα inline/inline-block στοιχεία μέσα */
        font-size: 1.4rem;
        
        margin: 0;             /* αποφυγή περιττών margin */
      }
    
    .chat-subtitle {
      
    
    font-size: 1rem;
    
    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(171, 207, 230, 0.4);
    color: #00363a;
    border: 1px solid #276045;
    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: #266180;
    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: #266180;
    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: #007bff !important; /* Μπλε */
  text-decoration: underline !important;
  cursor: pointer;
}

.chat-container a:hover {
  color: #0056b3 !important; /* Πιο σκούρο στο hover */
}



@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 {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
    height: auto !important;
    padding: 0.5rem !important;
  }

  .chat-logo {
    width: 5rem !important;
    height: auto !important;
    margin: 0.5rem 0 !important;
  }

  .logo-eu {
    width: 7rem !important;
    height: auto !important;
    margin: 0.5rem 0 !important;
  }

  .chat-title {
    font-size: 0.8rem !important;
    width: 100% !important;
  }

  .chat-subtitle {
    font-size: 0.5rem !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: 2rem !important;
    height: auto !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;
  }
}

