/* Sistema de Toast para DIA */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 90%;
}

.toast {
    background: #2c2c2c;
    border: 1px solid #404040;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    margin-bottom: 0;
    min-width: 300px;
    /* max-width: 400px; */
    width:100%;

    pointer-events: auto;
    position: relative;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f9fafb;
}

.toast-container > :not(:last-child) {
    margin-bottom: 10px;
}

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

.toast.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    background: #4a5568;
    color: white;
}

.toast-warning .toast-icon {
    background: #6b7280;
    color: white;
}

.toast-error .toast-icon {
    background: #374151;
    color: white;
}

.toast-info .toast-icon {
    background: #4b5563;
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.toast-message {
    font-size: 13px;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
    font-size: 16px;
    line-height: 1;
}

.toast-close:hover {
    color: #e5e7eb;
}

/* Animaciones de entrada y salida */
@keyframes toastSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

