/*!
 * -------------------------------------------------------------------------
 * glpiai plugin for GLPI
 * -------------------------------------------------------------------------
 *
 * MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 * -------------------------------------------------------------------------
 * @copyright Copyright (C) 2023 by the glpiai plugin team.
 * @license   MIT https://opensource.org/licenses/mit-license.php
 * @link      https://github.com/pluginsGLPI/glpiai
 * -------------------------------------------------------------------------
 */

.improve-button-container {
    position: absolute !important;
    margin: 1rem !important;
    bottom: 0;
    right: 0;
    transition: all 0.3s ease-in-out !important;
}

.improve-button-container.hide {
    transform: scale(0);
    opacity: 0;
}

.assistant-improve-button {
    box-shadow: 0px 0px 0px 0.5px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f !important;
    padding: 7px !important;
    border-radius: 2.5rem !important;
    position: relative !important;
    right: 0 !important;
    bottom: 0 !important;
    transition: all 0.1s ease-in-out !important;
    z-index: 99;
}

.assistant-improve-button.expend {
    box-shadow: none !important;
}

.improve-options {
    display: flex;
    flex-direction: row-reverse;
    position: absolute !important;
    bottom: 0;
    right: 0;
    padding-right: 2rem !important;
    padding-block: 3px !important;
    opacity: 0;
    transform-origin: center right;
    transform: scaleX(0) scaleY(1);
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0px 0px 0px 0.5px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f !important;
    border-radius: 2.5rem;
    z-index: 98;
}

.improve-options.show {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
}

.improve-option {
    margin-inline: 4px !important;
    padding: 4px !important;
    cursor: pointer !important;
}

.improve-option:hover {
    color: var(--tblr-primary-fg) !important;
    background-color: var(--tblr-primary) !important;
}

.improve-tooltip {
    position: absolute !important;
    bottom: 2.5rem;
    padding: 5px !important;
    font-size: 0.8rem !important;
    color: var(--tblr-btn-color-text) !important;
    background-color: var(--tblr-btn-color) !important;
    border-radius: 2.5rem;
    box-shadow: 0px 0px 0px 0.5px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f !important;
    transition: all 0.3s ease-in-out !important;
    transform: scale(1);
    text-align: center !important;
    white-space: nowrap !important;
}

.improve-tooltip::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Ajuster selon la taille de la flèche */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px; /* Ajuster selon la taille de la flèche */
    border-style: solid;
    border-color: var(--tblr-btn-color) transparent transparent transparent;
}

.improve-tooltip.hide {
    opacity: 0;
    transform: scale(0);
}
