/* Container que posiciona os cards no canto inferior direito da aba */
#setec-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

/* O Card Customizado Bonito */
.setec-toast-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid #0056b3; /* Cor institucional */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    animation: setecSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.setec-toast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.setec-prioridade-alta {
    border-left: 5px solid #dc3545 !important; /* Vermelho para erro */
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3) !important;
}

/* Área da Logo da SETEC */
.setec-toast-logo {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setec-toast-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Textos do Card */
.setec-toast-content {
    flex-grow: 1;
    cursor: pointer;
    padding-right: 15px;
}

.setec-toast-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.setec-toast-desc {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* Botão Fechar (X) */
.setec-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.setec-toast-close:hover {
    color: #333;
}

/* Animações de Entrada e Saída Corrigidas */
@keyframes setecSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes setecFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.setec-toast-fadeout {
    animation: setecFadeOut 0.2s ease forwards !important;
}

/* Botão flutuante para ligar/desligar o som das notificações.
   Fica no canto inferior esquerdo para não competir com os toasts,
   que aparecem no canto inferior direito. */
.setec-sound-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.setec-sound-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.setec-sound-toggle.setec-sound-off {
    opacity: 0.55;
}