.header-blue {
    min-height: 100vh;
}

#brand-logo-1 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

.user-avatar,
.ia-avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-left: 10px;
}

.user-text,
.ia-text {
    display: flex;
    align-items: center;
    color: white;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    max-width: 75%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: auto; 
}

@media (min-width: 601px) {
    .user-text,
    .ia-text {
        max-width: calc(100% - 20px); 
    }
}

.user-text {
    background-color: #690c0ceb;
    flex-direction: row-reverse;
    float: right;
    clear: both;
    box-shadow: 0px 0px 15px 2px #f50808;
}

.ia-text {
    background-color: #000000c9;
    color: #ffffff;
    float: left;
    clear: both;
    box-shadow: 0px 0px 15px 2px #000000;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1;
    overflow: auto;
}

.custom-input {
    border-radius: 8px;
    border: none;
    padding: 16px;
    background: linear-gradient(90deg, hsl(0deg 0% 0%) 0%, #3b2f37 100%);
    color: white;
    width: 100%;
}

.btn.g-recaptcha.custom-button {
    overflow: hidden;
    border-radius: 5px;
    background: rgb(135 8 18 / 82%);
    border: 2px solid rgb(189 60 60);
    padding: 16px;
    min-width: 8%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 300ms ease;
    margin-left: 10px;
    text-decoration: none;
    box-sizing: border-box;
    color: white;
}

.btn.g-recaptcha.custom-button svg {
    z-index: 0;
    fill: rgba(255, 255, 255, 1);
    width: 18px;
    height: 18px;
    transition: all 350ms ease-out;
}

.btn.g-recaptcha.custom-button:hover {
    padding: 16px;
    color: white;
}

.btn.g-recaptcha.custom-button:hover svg {
    transform: rotate(-60deg) scale(1.5);
}

.input-group.mb-3 {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transform: translateX(-15%);
}

.grecaptcha-badge {
    bottom: 50% !important;
    left: unset !important;
    transform: translateY(50%);
    filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 600px) {
    body,
    html {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .user-text,
    .ia-text {
        max-width: 100%;
    }

    .input-group.mb-3 {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        transform: translateX(0);
    }

    .custom-input {
        flex: 1;
        margin-right: 10px;
        height: 50px;
    }

    .btn.g-recaptcha.custom-button {
        width: auto;
        height: 50px;
        margin-top: -6px;
    }

    .input-container {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #fff;
        top: auto;
        margin-top: 0;
    }
}

::placeholder {
    color: white;
    opacity: 1;
}

:-ms-input-placeholder {
    color: white;
}

::-ms-input-placeholder {
    color: white;
}

#response {
    max-height: calc(70vh - 50px);
    overflow-y: auto;
    padding: 20px;
}

#response::-webkit-scrollbar {
    width: 10px;
}

#response::-webkit-scrollbar-track {
    background: #dc4fe552;
}

#response::-webkit-scrollbar-thumb {
    background: rgba(177, 0, 0, 0.82);
}

#response::-webkit-scrollbar-thumb:hover {
    background: rgba(146, 9, 9, 0.82);
}

.input-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
}

#top-logo {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}


.popup {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 40px; 
      background-color: rgba(0 0 0 / 90%); 
      color: #fff; 
      box-shadow: 0px 0px 12px 5px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      border-radius: 10px;
      font-family: Arial, sans-serif;
      width: 80%; 
      max-width: 400px; 
      text-align: center; 
   }

   .popup button {
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 20px;
      position: absolute;
      top: 10px;
      right: 10px;
   }

   .popup ul {
      list-style: none;
      padding: 20px 0;
   }

   .popup ul li {
      margin: 10px 0;
   }

   .popup ul li a {
      color: #fff;
      text-decoration: none;
      font-size: 18px;
   }
   .popupuploadfile {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px; 
    background-color: rgba(0 0 0 / 90%); 
    color: #fff; 
    box-shadow: 0px 0px 12px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    width: 80%; 
    max-width: 400px; 
    text-align: center; 
 }

 .popupuploadfile button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
 }

 .popupuploadfile ul {
    list-style: none;
    padding: 20px 0;
 }

 .popupuploadfile ul li {
    margin: 10px 0;
 }

 .popupuploadfile ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
 }
 .popupupdf {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0 0 0 / 90%);
    color: #fff;
    box-shadow: 0px 0px 12px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    width: 80%;
    max-width: 400px;
    text-align: center;
    overflow: hidden;
}

.pdf-container {
    max-height: 300px;
    overflow-y: auto;
}

.popupupdf button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    z-index: 1; 
}

.popupupdf button.transcrever-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.popupupdf ul {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.popupupdf ul li {
    margin: 10px 0;
}

.popupupdf ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.popupupdf input[type="text"] {
    margin-top: 10px;
    padding: 5px;
}

.popupupdf button.transcrever-button {
    margin-top: 10px;
    padding: 5px 10px;
}

#popup-pdf-text {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    box-shadow: 0px 0px 12px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    width: 80%;
    max-width: 600px;
    text-align: center;
    overflow: hidden;
}


#popup-pdf-text .pdf-container {
    max-height: 250px; 
    overflow-y: auto;
    margin-top: 20px; 
    word-wrap: break-word; 
}

#popup-pdf-text .pdf-container p {
    margin-bottom: 10px; 
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.loader-ring {
    border: 16px solid #d13db1;
    border-top: 16px solid #032f4d; 
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    background: linear-gradient(45deg, #ff007d, #4d00ff);
    background-size: 300% 300%;
    animation: gradient 3s ease infinite, spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}