/* Estilos para Notificaciones Toast - Sistema Administrativo CENDI */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.cendi-toast {
    min-width: 300px;
    max-width: 450px;
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35) forwards;
    position: relative;
    overflow: hidden;
    color: #333;
    font-family: 'Lato', sans-serif;
    border-left: 6px solid #ccc;
}

.cendi-toast.success {
    border-left-color: #28a745;
}

.cendi-toast.error {
    border-left-color: #dc3545;
}

.cendi-toast.warning {
    border-left-color: #ffc107;
}

.cendi-toast.info {
    border-left-color: #3185cb;
}

.cendi-toast.hide {
    animation: toastOut 0.5s ease forwards;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.success .toast-icon {
    color: #28a745;
}

.error .toast-icon {
    color: #dc3545;
}

.warning .toast-icon {
    color: #ffc107;
}

.info .toast-icon {
    color: #3185cb;
}

.toast-content {
    flex-grow: 1;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
    font-size: 18px;
    background: transparent;
    border: none;
}

.toast-close:hover {
    color: #333;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    transform-origin: left;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressLoad {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}