#chatlog{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
#form-field-userInput{
    outline:0;
    width:100%;
    padding:20px;
    border-radius: 30px;
    border: 1px solid #dee1ed;
    background-color: #f4f6fa;
    resize: vertical;
    font-size: 13px; 
    color: #65758B;
}
#form-field-userInput::-webkit-input-placeholder,
#form-field-userInput::-moz-placeholder, 
#form-field-userInput:-ms-input-placeholder, 
#form-field-userInput:-moz-placeholder, 
.chat-dmind-wrapper textarea#form-field-userInput::placeholder {
  color: #65758B !important;     /* cor */
  font-size: 12px;
  font-weight: 300;
}

.pergunta{
    max-width: 70%;
    font-size: 14px;
    line-height: 20px;
    flex: 1;
    align-self: flex-end;
    font-weight: 400;
    padding: 10px 20px;
    background-color: #dee1ed;
    border-radius: 15px;
    margin: 20px;
}
.versao-chat{
    font-family: "Roboto", Sans-serif;
    font-size: 11px;
    text-align: right;
    font-weight: 400;
    color: #dee1ed;
}
#tokens-usados {
    float: left;
    font-size: 11px;
    color: #65758B;
}
#tokens-total {
    float: right;
    font-size: 11px;
    color: #65758B;
}
.bar{
    height: 2px;
    background: #dee1ed;
    position: relative;
    margin: 0;
}
#tokens-bar{
    height: 2px;
    background: #ff4000;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
}
#tokens-bar-container{
    width: 100%;
    margin: 16px 0;
}
.aviso-login{
    color: #ff4000;
}
.resposta{
    font-size: 14px;
    line-height: 20px;
    color: #65758B;
    font-weight: 300;
    padding: 0 15px;
}
.resposta a{
    color: #ff4000;
    text-decoration: underline;
}
.resposta.escrevendo .pontos {
    font-style: italic;
    color: #65758B;
    animation: blink 1s steps(3, end) infinite;
}
.resposta ul {
    margin-bottom: 20px;
}
.resposta iframe, .resposta .elementor embed, .resposta .elementor iframe, .resposta .elementor object, .resposta .elementor video {
    width: 450px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
#upload-container {
    position: relative;
}

#upload-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    left: 10px;
    bottom: 10px;
}

/* #upload-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px 0 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#upload-button:hover, #upload-button:focus {
    background-color: rgba(0, 0, 0, 0.0);
    transform: scale(1.1);
} */
#upload-button {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#upload-button .upload-button-icon {
  width: 20px;
  height: 20px;
  fill: #65758B;
  transition: transform .15s, filter .15s;
}
#upload-button:hover .upload-button-icon {
  transform: scale(1.07);
  filter: brightness(.9);
  fill: #ff4000;
}

.allowed-types-text {
    font-size: 10px;
    color: #65758B;
    background-color: rgba(240, 240, 240, 0.0);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 400;
    /* border: 1px solid #e0e0e0; */
    transition: all 0.3s ease;
    user-select: none;
    cursor: default;
}

/* .allowed-types-text:hover {
    background-color: rgba(230, 230, 230, 0.95);
    color: #666;
    transform: scale(1.02);
} */

/* Responsive adjustments */
@media (max-width: 768px) {
    #upload-controls {
        flex-direction: row;
        align-items: flex-end;
        gap: 0px;
        bottom: 10px;
    }
    
    .allowed-types-text {
        font-size: 9px;
        padding: 0px 4px 4px;
    }

    #form-field-userInput,
    .chat-dmind-wrapper input,
    .chat-dmind-wrapper textarea,
    .chat-dmind-wrapper select {
        font-size: 16px !important;
    }
}

/* File indicator styles */
.file-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    margin: 5px 0;
    background-color: #e8f4f8;
    border: 1px solid #d1ecf1;
    border-radius: 8px;
    font-size: 10px;
    color: #0c5460;
    transition: all 0.3s ease;
}

.file-indicator:hover {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.file-info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    margin-left: 8px !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 15px !important;
    height: 15px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.remove-file-btn:hover {
    background: #c82333 !important;
    transform: scale(1.1) !important;
}

.remove-file-btn:active {
    transform: scale(0.95) !important;
}

/* Drag and drop visual feedback */
#form-field-userInput.drag-over {
    border-color: #007cba;
    background-color: #e8f4f8;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* File error messages */
.resposta.erro-arquivo {
    max-width: 90%;
    font-size: 14px;
    line-height: 20px;
    align-self: flex-start;
    font-weight: 400;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.resposta.erro-arquivo .error-content {
    flex: 1;
    margin-right: 10px;
}

.resposta.erro-arquivo strong {
    color: #721c24;
    font-weight: 600;
}

.remove-error-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin-left: 10px !important;
    flex-shrink: 0 !important;
}

.remove-error-btn:hover {
    background: #c82333 !important;
    transform: scale(1.1) !important;
}

.remove-error-btn:active {
    transform: scale(0.95) !important;
}
@keyframes blink {
  0% { opacity: 1; }
  33% { opacity: 0.3; }
  66% { opacity: 1; }
}