#webSearchInputTools textarea {
    position: static;
    transform: none;
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 1px solid #333;
    border-radius: 20px;
    outline: none;
    resize: none;
    background: #333;
    color: #e0e0e0;
    font-size: 1em;
    min-height: 50px;
    max-height: 150px;
    line-height: 1.5;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 16;
}

#webSearchInputTools {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    height: 120px;
    padding: 10px;
    background: #333;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 15;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    animation: slideIn 0.3s ease-out;
}

#webSearchInputTools.active {
    display: flex;
}

#webSearchInputTools .textarea-wrapper {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.web-search-btn {
  background: #414141;
}

#webSearchInputTools .send-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-90%);
    background: #414141;
    color: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 17;
}

#webSearchInputTools .send-btn:hover {
    background: #585656;
    transform: translateY(-50%) scale(1.1);
}

#webSearchInputTools .send-btn:disabled {
    background: #404040;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
}

#webSearchInputTools .input-tools {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-top: 10px;
    transform: none;
}

.web-search-btn,
.web-voice-btn,
.web-image-btn,
.web-pdf-btn,
.web-url-btn {
    background: #414141;
    color: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.web-voice-btn.active {
    background: #ff8787;
}

#webUrlInput {
    padding: 8px 10px;
    border-radius: 10px;
    background: #252525;
    color: #e0e0e0;
    border: 1px solid #404040;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#webUrlInput:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    outline: none;
    transform: none;
}

.loading-indicator#webSearchLoading {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    color: #e0e0e0;
    font-size: 14px;
    background: rgba(29, 30, 32, 0.9);
    padding: 5px 15px;
    border-radius: 10px;
    z-index: 12;
    display: none;
}

.loading-indicator#webSearchLoading.active {
    display: block;
}

@media (max-width: 768px) {
    #webSearchInputTools {
        padding: 5px;
        height: 110px;
    }

    #webSearchInputTools .textarea-wrapper {
        min-height: 40px;
    }

    #webSearchInputTools textarea {
        min-height: 40px;
        padding: 10px 45px 10px 10px;
        font-size: 0.9em;
    }

    #webSearchInputTools .send-btn {
        width: 35px;
        height: 35px;
        right: 10px;
    }

    #webSearchInputTools .input-tools {
        gap: 10px;
        padding: 8px 0;
        margin-top: 5px;
    }

    .web-search-btn,
    .web-voice-btn,
    .web-image-btn,
    .web-pdf-btn,
    .web-url-btn {
        width: 35px;
        height: 35px;
    }

    #webUrlInput {
        padding: 6px 8px;
        font-size: 0.85em;
    }

    .loading-indicator#webSearchLoading {
        bottom: 120px;
        font-size: 12px;
        padding: 4px 12px;
    }
}

html[dir="rtl"] #webSearchInputTools .send-btn {
    right: auto;
    left: 15px;
}

html[dir="rtl"] #webSearchInputTools .input-tools {
    flex-direction: row-reverse;
}

html[dir="rtl"] #webUrlInput {
    text-align: right;
}

@media (max-width: 768px) {
    html[dir="rtl"] #webSearchInputTools .send-btn {
        left: 10px;
    }
}
