/* Fade-in suave para botões de legenda do radar (recriados a cada callback) */
@keyframes legendFadeIn {
    from {
        opacity: 0;
        transform: scale(0.93);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.legend-btn-fade {
    animation: legendFadeIn 0.22s ease;
}

.boxplot-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 16px;
    color: currentColor;
}

.boxplot-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 7px;
    border-top: 2px solid currentColor;
}

.boxplot-icon::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 10px;
    height: 9px;
    border: 2px solid currentColor;
    background: transparent;
    box-sizing: border-box;
}

.boxplot-icon-median {
    position: absolute;
    left: 10px;
    top: 2px;
    height: 12px;
    border-left: 2px solid currentColor;
    z-index: 1;
}

/* Mantem o fundo dos campos de login igual mesmo ao digitar/autopreencher */
.login-input,
.login-input:focus,
.login-input:active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    box-shadow: none !important;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 9999s ease-out 0s;
    -webkit-box-shadow: 0 0 0 1000px #1e3a8a inset !important;
}

/* Info tooltip (botão ⓘ nos cards de gráfico) */
.info-tooltip .tooltip-inner {
    background-color: #1e3a8a !important;
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    max-width: 550px;
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-tooltip.bs-tooltip-top .tooltip-arrow::before,
.info-tooltip.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #1e3a8a !important;
}

.info-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.info-tooltip.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #1e3a8a !important;
}

.popover.radar-popover,
.radar-popover,
.radar-popover .popover-body,
.radar-popover .popover-header,
.radar-popover .popover-content {
    background-color: rgba(30, 58, 138, 0.72) !important;
    border-radius: 12px !important;
}

.radar-popover {
    max-width: 320px !important;
    --bs-popover-bg: rgba(30, 58, 138, 0.72);
    --bs-popover-border-color: rgba(255, 255, 255, 0.18);
}

.radar-popover.bs-popover-end .popover-arrow::after,
.radar-popover.bs-popover-auto[data-popper-placement^=right] .popover-arrow::after {
    border-right-color: rgba(30, 58, 138, 0.72) !important;
}

.radar-popover.bs-popover-start .popover-arrow::after,
.radar-popover.bs-popover-auto[data-popper-placement^=left] .popover-arrow::after {
    border-left-color: rgba(30, 58, 138, 0.72) !important;
}

@keyframes pulseAlertaSetor {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.14);
        border-color: #3b82f6;
    }
    50% {
        box-shadow: 0 6px 24px rgba(37, 99, 235, 0.30);
        border-color: #1d4ed8;
    }
}

/* Anel de destaque no container do dropdown quando nenhum setor está selecionado */
.setor-sem-selecao {
    animation: pulseAlertaSetor 2.2s infinite ease-in-out;
    border-radius: 12px;
    padding: 2px;
}

/* Destaque visual no controle interno do Dash Dropdown quando sem seleção */
.setor-sem-selecao .Select-control,
.setor-sem-selecao [class*="-control"] {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fade-in do empty-state ao aparecer */
@keyframes fadeInEmptyState {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.empty-state-setor {
    animation: fadeInEmptyState 0.45s ease forwards;
}
