/**
 * LAUDO CONTROL - ESTILOS PARA TOAST
 * @version 1.0
 */

/* Container de toasts */
#lc-toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

/* Toast base */
.lc-toast {
    position: relative;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    overflow: hidden;
    background: white;
}

/* Animação de entrada */
.lc-toast-show {
    opacity: 1;
    transform: translateX(0) !important;
}

/* Posicionamentos */
.lc-toast-top-right {
    top: 20px;
    right: 20px;
}

.lc-toast-top-left {
    top: 20px;
    left: 20px;
    transform: translateX(-400px);
}

.lc-toast-top-left.lc-toast-show {
    transform: translateX(0);
}

.lc-toast-bottom-right {
    bottom: 20px;
    right: 20px;
}

.lc-toast-bottom-left {
    bottom: 20px;
    left: 20px;
    transform: translateX(-400px);
}

.lc-toast-bottom-left.lc-toast-show {
    transform: translateX(0);
}

.lc-toast-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
}

.lc-toast-top-center.lc-toast-show {
    transform: translateX(-50%) translateY(0);
}

.lc-toast-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
}

.lc-toast-bottom-center.lc-toast-show {
    transform: translateX(-50%) translateY(0);
}

/* Conteúdo do toast */
.lc-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Ícone */
.lc-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* Mensagem */
.lc-toast-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2d3748;
}

/* Botão de fechar */
.lc-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.lc-toast-close:hover {
    opacity: 1;
}

/* Barra de progresso */
.lc-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
}

@keyframes lc-toast-progress-animation {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Tipos de toast */

/* Sucesso */
.lc-toast-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.lc-toast-success .lc-toast-icon {
    color: white;
}

.lc-toast-success .lc-toast-message {
    color: white;
}

/* Erro */
.lc-toast-error {
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
}

.lc-toast-error .lc-toast-icon {
    color: white;
}

.lc-toast-error .lc-toast-message {
    color: white;
}

/* Aviso */
.lc-toast-warning {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
}

.lc-toast-warning .lc-toast-icon {
    color: white;
}

.lc-toast-warning .lc-toast-message {
    color: white;
}

/* Info */
.lc-toast-info {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
}

.lc-toast-info .lc-toast-icon {
    color: white;
}

.lc-toast-info .lc-toast-message {
    color: white;
}

/* Loading */
.lc-toast-loading {
    background: linear-gradient(135deg, #607d8b, #78909c);
    color: white;
}

.lc-toast-loading .lc-toast-icon {
    color: white;
    animation: lc-toast-loading-spin 1.5s linear infinite;
}

.lc-toast-loading .lc-toast-message {
    color: white;
}

@keyframes lc-toast-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modo escuro */
body.dark-mode .lc-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .lc-toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .lc-toast-top-right,
    .lc-toast-top-left {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-100px);
    }
    
    .lc-toast-top-right.lc-toast-show,
    .lc-toast-top-left.lc-toast-show {
        transform: translateX(-50%) translateY(0);
    }
    
    .lc-toast-bottom-right,
    .lc-toast-bottom-left {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
    }
    
    .lc-toast-bottom-right.lc-toast-show,
    .lc-toast-bottom-left.lc-toast-show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Múltiplos toasts */
#lc-toast-container .lc-toast:not(:last-child) {
    margin-bottom: 12px;
}

/* Animação de saída */
.lc-toast-removing {
    opacity: 0;
    transform: translateX(400px);
}

