/* Estilos para o NotificacaoManager */

.toast-container {
    position: fixed;
    z-index: 9999;
    max-width: 350px;
    overflow: hidden;
}

/* Posicionamento */
.toast-container.top-right {
    top: 20px;
    right: 20px;
}

.toast-container.top-left {
    top: 20px;
    left: 20px;
}

.toast-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.toast-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.toast-container.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Toast base */
.toast {
    position: relative;
    margin-bottom: 10px;
    padding: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border-left: 4px solid transparent;
    width: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Cabeçalho */
.toast-title {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* Corpo */
.toast-body {
    padding: 12px 15px;
    line-height: 1.4;
    word-break: break-word;
}

/* Botão fechar */
.close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    color: inherit;
    padding: 0;
    margin-left: 10px;
}

.close:hover {
    opacity: 1;
}

/* Barra de progresso */
.toast-progress-container {
    position: relative;
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-progress {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    bottom: 0;
}

/* Tipos de notificação */
.toast-success {
    border-left-color: #28a745;
}
.toast-success .toast-title {
    color: #28a745;
}
.toast-success .toast-progress {
    background-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}
.toast-error .toast-title {
    color: #dc3545;
}
.toast-error .toast-progress {
    background-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}
.toast-warning .toast-title {
    color: #ffc107;
}
.toast-warning .toast-progress {
    background-color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}
.toast-info .toast-title {
    color: #17a2b8;
}
.toast-info .toast-progress {
    background-color: #17a2b8;
}

/* Animações personalizadas */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.toast-pulse {
    animation: pulse 1s infinite;
}

/* Ícones para os diferentes tipos */
.toast-title::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    display: inline-block;
    width: 16px;
}

.toast-success .toast-title::before {
    content: "\f058"; /* fa-check-circle */
}

.toast-error .toast-title::before {
    content: "\f057"; /* fa-times-circle */
}

.toast-warning .toast-title::before {
    content: "\f071"; /* fa-exclamation-triangle */
}

.toast-info .toast-title::before {
    content: "\f05a"; /* fa-info-circle */
}
