﻿/*
    Lo stile della finestra di conferma.

    Prima stava dentro un tag <style> in Confirm.razor, quindi ogni singola istanza del componente
    si portava dietro la sua copia: in una griglia con un pulsante di conferma per riga voleva dire
    una trentina di copie identiche nella pagina ad ogni render.

    Chi usa la libreria lo collega una volta sola:
    <link href="_content/BlazorLibrary/blazorlibrary.css" rel="stylesheet" />
*/

.bq-container {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
}

.bq-active {
    display: block !important;
}

.blazor-question {
    display: none;
    width: 280px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #8c8c8c;
    padding: .8rem;
    z-index: 1000000;
    position: fixed;
    font-size: 13px;
    top: 20vh;
    right: calc(50vw - 120px);
    color: #000;
}

.bq-content {
    padding: 0 3px;
    text-align: center;
    margin-top: 5px;
}

.bq-button {
    padding: 20px 0 0 0;
    text-align: center;
}

/* ---------------------------------------------------------------- il popup di avviso */

    .bm-container {
        display: none;
        align-items: center;
        justify-content: center;
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 2;
        background-color: rgba(0,0,0,0.5);
    }

    .bm-active {
        display: block !important;
    }

    .bm-shake {
        animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
        transform: translate3d(0, 0, 0);
    }

    .bm-red {
        color: red;
    }

    .blazor-modal {
        display: none;
        width: 280px;
        background-color: #fff;
        border-radius: 4px;
        border: 1px solid #8c8c8c;
        padding: .8rem;
        z-index: 1000000;
        position: fixed;
        font-size: 13px;
        top: 20px;
        right: 20px;
    }

    .bm-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 10px 0 20px 0;
    }

    .bm-title {
        margin-bottom: 0;
        font-size: 18px;
        line-height: 0;
    }

    .bm-content {
        padding: 0 3px;
        text-align: left;
    }

    .bm-close {
        padding: 0 4px;
        background-color: transparent;
        border: 0;
        -webkit-appearance: none;
        cursor: pointer;
        font-size: 23px;
        line-height: 0;
        float: right;
        font-weight: bold;
    }

    @keyframes shake {
        10%, 90% {
            transform: translate3d(-1px, 0, 0);
        }

        20%, 80% {
            transform: translate3d(2px, 0, 0);
        }

        30%, 50%, 70% {
            transform: translate3d(-4px, 0, 0);
        }

        40%, 60% {
            transform: translate3d(4px, 0, 0);
        }
    }
